Spaces:
Runtime error
Runtime error
Rithvickkr
commited on
Commit
·
f0ada1f
1
Parent(s):
1fa82fd
init 7
Browse files
app.py
CHANGED
|
@@ -506,14 +506,26 @@ def chatbot_response(user_input, file, history, state):
|
|
| 506 |
)
|
| 507 |
|
| 508 |
prompt = f"""
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 517 |
try:
|
| 518 |
llm_response = call_mistral_llm(prompt)
|
| 519 |
except Exception as e:
|
|
|
|
| 506 |
)
|
| 507 |
|
| 508 |
prompt = f"""
|
| 509 |
+
CLASSIFICATION: {scan_result['classification']}
|
| 510 |
+
SEVERITY: {scan_result['severity']}
|
| 511 |
+
CONFIDENCE: {scan_result['confidence']:.1f}
|
| 512 |
+
THREAT DETAILS: {other_threats_summary}
|
| 513 |
+
|
| 514 |
+
IMMEDIATE RESPONSE REQUIRED:
|
| 515 |
+
|
| 516 |
+
THREAT ASSESSMENT: Analyze this security incident with precision. Provide tactical recommendations and threat intelligence.
|
| 517 |
+
|
| 518 |
+
DIRECTIVE: Generate a concise, actionable security briefing. Focus on:
|
| 519 |
+
1. Primary threat vector and attack methodology
|
| 520 |
+
2. Immediate containment procedures
|
| 521 |
+
3. Risk escalation potential
|
| 522 |
+
4. Technical countermeasures
|
| 523 |
+
|
| 524 |
+
RESPONSE FORMAT: Direct, technical, no pleasantries. Use cybersecurity terminology. Prioritize critical actions first.
|
| 525 |
+
|
| 526 |
+
CONTEXT: Real-time threat detected in production environment. Response time critical.
|
| 527 |
+
|
| 528 |
+
EXECUTE ANALYSIS:"""
|
| 529 |
try:
|
| 530 |
llm_response = call_mistral_llm(prompt)
|
| 531 |
except Exception as e:
|