MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / RemediationScript

Class RemediationScript

modules/remediation/ai_engine.py:38–54  ·  view source on GitHub ↗

AI-generated remediation package for a single confirmed finding.

Source from the content-addressed store, hash-verified

36 """AI-generated remediation package for a single confirmed finding."""
37 cve_id: str
38 target: str
39 service: str
40 version: str
41 model_used: str
42
43 immediate_mitigation: str = "" # Quick block / reduce exposure
44 permanent_fix: str = "" # Root cause fix
45 rollback_script: str = "" # Undo permanent fix
46 verification_command: str = "" # Confirm fix worked
47 explanation: str = "" # Plain-English explanation
48
49 validation: ScriptValidationResult | None = None
50 safe: bool = False
51 warnings: list[str] = field(default_factory=list)
52
53
54# ── System prompt ─────────────────────────────────────────────────────────────
55
56_SYSTEM_PROMPT = """\
57You are an expert Linux and network security hardening engineer.

Callers 2

generate_from_exploitMethod · 0.85
_generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected