Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ omit =
*/__init__.py
*.pyi
venv/*
*/experimental/*
11 changes: 8 additions & 3 deletions pentestgpt/knowledge/intelligence_feed_integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,14 @@ def process_threat_feed(
}

# Extract and validate IOCs
iocs = self._extract_comprehensive_iocs(
raw_data.get("description", "") + " " + raw_data.get("indicators", ""),
)
indicators_raw = raw_data.get("indicators", "")
if isinstance(indicators_raw, list):
indicators_str = " ".join(str(x) for x in indicators_raw)
elif isinstance(indicators_raw, str):
indicators_str = indicators_raw
else:
raise TypeError(f"'indicators' must be str or list, got {type(indicators_raw).__name__}")
iocs = self._extract_comprehensive_iocs(raw_data.get("description", "") + " " + indicators_str)
processed_content["iocs"] = iocs

# Calculate confidence and validation
Expand Down
3 changes: 2 additions & 1 deletion pentestgpt/network/protocol_evasion.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,8 @@ async def handle_network_event(
if alert_level in ["medium", "high"]:
# Increase evasion intensity
self._increase_evasion_intensity()
return {"status": "evasion_intensity_increased"}
return {"status": "evasion_intensity_increased"}
return {"status": "evasion_intensity_unchanged"}

return {"status": "unknown_event", "event_type": event_type}

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ omit = [
"*/.eggs/*",
"*/build/*",
"*/dist/*",
"*/migrations/*"
"*/migrations/*",
"*/experimental/*"
]

[tool.coverage.report]
Expand Down
Loading
Loading