ibibek commited on
Commit
ae0b7f2
·
1 Parent(s): 9cd4e94

Update pages/2_Auto_Generate_Plan_and_Personas.py

Browse files
pages/2_Auto_Generate_Plan_and_Personas.py CHANGED
@@ -18,8 +18,19 @@ if OpenAI_Key:
18
 
19
 
20
  ex = ExampleGenerator() #declare the instance
21
- e = ex.auto_generate()
 
 
 
 
 
 
 
 
 
 
22
 
 
23
  st.write(ex.description) #the description is cached in this variable
24
 
25
  st.subheader('Prefix Namespaces')
@@ -36,9 +47,7 @@ if OpenAI_Key:
36
 
37
  if result:
38
  st.subheader("Auto generate specific plan")
39
- keywords = st.text_area("Enter keywords to keep in the plan","breadcrumbtrail")
40
- nkeywords= st.text_area("You can pass keywords to exclude from the example generation", "honeypot")
41
- personas = ex.auto_generate(planSize=5, keywords=keywords,nkeywords=nkeywords, contextPrompt= ex.description)
42
  st.subheader("Persona based on the existing description provided in the deception plan")
43
  _ = ex.generate_personas()
44
  st.write( ex.persona_descriptions )
 
18
 
19
 
20
  ex = ExampleGenerator() #declare the instance
21
+ example= """ You are part of a small business called MineralRUs Inc., which is a small, yet critical mining company in New Hampshire specializing in rare earth elements.
22
+ Your main clients are from particular sectors of technology and defense industries, and are considered to be critical infrastructure. Therefore, your business and its operation is essential to the integrity of supply chains enabling those critical infrastructure.
23
+ MineralRUs Inc. maintains paper-based record of their key intellectual property and operational procedures, which are stored in a physical safe. This fact is known by only a select few in the company.
24
+ Your business has a small, unorganized computer network with only generic security infrastructure, and the company does not have the resources to employ an in-house information security team. Instead, a very small team is tasked with maintaining Operational Technology (OT) systems on the network.
25
+ Your company has recently received an advisory from federal authorities, warning businesses in your industry about the rapidly growing threat of cyber espionage by state-sponsored Advanced Persistent Threats (APTs). In response, your company decides to engage an external cybersecurity provider to assist with timely incident response and prevention. The external provider recommends the employment of active adversary engagement plans, and asks you to develop a high-level deception and denial strategy.
26
+ """
27
+ context_prompt_input = st.text_area("Enter your example here:", example,height=500)
28
+ keywords = st.text_area("Enter keywords to keep in the plan","breadcrumbtrail")
29
+ nkeywords= st.text_area("You can pass keywords to exclude from the example generation", "honeypot")
30
+ e = ex.auto_generate(planSize=5, keywords=keywords,nkeywords=nkeywords, contextPrompt= context_prompt_input)
31
+ # e = ex.auto_generate(contextPrompt=context_prompt_input)
32
 
33
+ st.subheader("Plan")
34
  st.write(ex.description) #the description is cached in this variable
35
 
36
  st.subheader('Prefix Namespaces')
 
47
 
48
  if result:
49
  st.subheader("Auto generate specific plan")
50
+
 
 
51
  st.subheader("Persona based on the existing description provided in the deception plan")
52
  _ = ex.generate_personas()
53
  st.write( ex.persona_descriptions )