ibibek commited on
Commit
9b99d72
·
1 Parent(s): b0fa771

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -39
app.py CHANGED
@@ -2,16 +2,6 @@ import streamlit as st
2
  import openai
3
 
4
 
5
- description = """Use one engagement:Narrative
6
- Use one engagement:Storyline
7
- Use the following people:
8
- Bob Smith is a defender role
9
- Mary Jane is an adversary role
10
- Use three planned events:
11
- Planned Event one - Bob Smith deploys a honeyobject enviroment and a honeytoken file containing fake user credentials called "user-creds.dmp". The objective is to direct and elicit. He also deploys a honeypot with the objective to detect and trap.
12
- Planned Event two - The honeypot beacons to the dataTarget called CanaryTokenAlert, the performer is the honeypot, the object is the CanaryTokenAlert.
13
- Planned Event three - CanaryTokenAlert dataSource alerts Bob Smith that the second honeypot was accessed. The performer is the CanaryTokenAlert, the object is Bob Smith
14
- """
15
 
16
 
17
  st.title('AEO Example Generator')
@@ -35,35 +25,36 @@ openai.api_key = openai_key
35
 
36
  from aeo_ex_generator.aeo_example_generator import ExampleGenerator
37
  ex = ExampleGenerator()
38
- ex.add_ontology("ae_ontology.ttl") #provide the ontology ttl file
39
-
40
-
41
- # Prompt Examples
42
- st.subheader("Prompts Examples")
43
- with st.expander("Example-1"):
44
- st.write("""
45
- Use one engagement:Narrative
46
- Use one engagement:Storyline
47
- Use the following people:
48
- Bob Smith is a defender role
49
- Mary Jane is an adversary role
50
- Use three planned events:
51
- Planned Event one - Bob Smith deploys a honeyobject enviroment and a honeytoken file containing fake user credentials called "user-creds.dmp". The objective is to direct and elicit. He also deploys a honeypot with the objective to detect and trap.
52
- Planned Event two - The honeypot beacons to the dataTarget called CanaryTokenAlert, the performer is the honeypot, the object is the CanaryTokenAlert.
53
- Planned Event three - CanaryTokenAlert dataSource alerts Bob Smith that the second honeypot was accessed. The performer is the CanaryTokenAlert, the object is Bob Smith
54
- """)
55
- with st.expander("Example-2"):
56
- st.write("""
57
- Use one engagement:Narrative
58
- Use one engagement:Storyline
59
- Use the following people:
60
- John White is a defender role
61
- Use three planned events:
62
- Planned Event one - John White deploys a breadcrumbtrail consisting of four breadcrumbs. The objective is to direct. He also deploys a honeypot with the objective to trap.
63
- Planned Event two - The honeypot beacons to the dataTarget called CommandControlCenter, the performer is the honeypot, the object is the CommandControlCenter.
64
- Planned Event three - CommandControlCenter dataSource alerts John White that the honeypot was accessed. The performer is the CommandControlCenter, the object is John White
65
- """)
66
- # get the user input
 
67
  st.subheader("Write a prompt to generate the example.")
68
  user_input = st.text_area("Enter your description here ", "", height=200)
69
 
 
2
  import openai
3
 
4
 
 
 
 
 
 
 
 
 
 
 
5
 
6
 
7
  st.title('AEO Example Generator')
 
25
 
26
  from aeo_ex_generator.aeo_example_generator import ExampleGenerator
27
  ex = ExampleGenerator()
28
+
29
+
30
+
31
+ # # Prompt Examples
32
+ # st.subheader("Prompts Examples")
33
+ # with st.expander("Example-1"):
34
+ # st.write("""
35
+ # Use one engagement:Narrative
36
+ # Use one engagement:Storyline
37
+ # Use the following people:
38
+ # Bob Smith is a defender role
39
+ # Mary Jane is an adversary role
40
+ # Use three planned events:
41
+ # Planned Event one - Bob Smith deploys a honeyobject enviroment and a honeytoken file containing fake user credentials called "user-creds.dmp". The objective is to direct and elicit. He also deploys a honeypot with the objective to detect and trap.
42
+ # Planned Event two - The honeypot beacons to the dataTarget called CanaryTokenAlert, the performer is the honeypot, the object is the CanaryTokenAlert.
43
+ # Planned Event three - CanaryTokenAlert dataSource alerts Bob Smith that the second honeypot was accessed. The performer is the CanaryTokenAlert, the object is Bob Smith
44
+ # """)
45
+ # with st.expander("Example-2"):
46
+ # st.write("""
47
+ # Use one engagement:Narrative
48
+ # Use one engagement:Storyline
49
+ # Use the following people:
50
+ # John White is a defender role
51
+ # Use three planned events:
52
+ # Planned Event one - John White deploys a breadcrumbtrail consisting of four breadcrumbs. The objective is to direct. He also deploys a honeypot with the objective to trap.
53
+ # Planned Event two - The honeypot beacons to the dataTarget called CommandControlCenter, the performer is the honeypot, the object is the CommandControlCenter.
54
+ # Planned Event three - CommandControlCenter dataSource alerts John White that the honeypot was accessed. The performer is the CommandControlCenter, the object is John White
55
+ # """)
56
+
57
+
58
  st.subheader("Write a prompt to generate the example.")
59
  user_input = st.text_area("Enter your description here ", "", height=200)
60