MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_traffic_irc

Function get_traffic_irc

webapp_modern.py:17090–17105  ·  view source on GitHub ↗

Get parsed IRC sessions (DPI) observed on the wire.

()

Source from the content-addressed store, hash-verified

17088 original.get('timestamp')
17089 or original.get('last_seen')
17090 or default_last_update
17091 )
17092
17093 attribution = None
17094 if enriched_finding.attribution and enriched_finding.attribution.actor_name:
17095 confidence = enriched_finding.attribution.confidence
17096 if confidence:
17097 attribution = f"{enriched_finding.attribution.actor_name} ({int(round(confidence * 100))}% confidence)"
17098 else:
17099 attribution = enriched_finding.attribution.actor_name
17100
17101 summary = (enriched_finding.executive_summary or '').strip()
17102 if summary and len(summary) > 160:
17103 summary = summary[:157] + '...'
17104
17105 risk_score = int(round(min(enriched_finding.dynamic_risk_score or 0.0, 10.0) * 10))
17106
17107 return {
17108 'id': finding_id,

Callers

nothing calls this directly

Calls 4

get_irc_sessionsMethod · 0.80
errorMethod · 0.80
get_traffic_analyzerFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected