How limbyungkwan/security-agent-toolkit works
This repository is a security-agent toolkit, centered on a batch workflow that reads security events, summarizes and ranks them, generates a dated report, checks approval thresholds, and sends a webhook notification. Separate capabilities include receiving webhooks and routing investigation tools for login counts and IP lookups. The graph reflects the inspected pipeline and modules; other files in the tree include exercises and examples whose runtime relationships are not established by the available evidence.
Main entry points: pipeline.py Report pipeline · report_generator.py Report generator · tool_router.py Tool router · event_summarizer.py Event summarizer
Components 14
Report workflow
- Report pipeline
agent_core/pipeline.py - Runtime config
agent_core/config.json - Security events
agent_core/events_1008.json - Event summarizer
agent_core/event_summarizer.py - Report generator
agent_core/report_generator.py - Daily reports
agent_core/reports/daily_report_20261008.md
External integrations
- Config and notifier
agent_core/notifier.py - Gemini API
- IP lookup API
Investigation tools
- Tool router
agent_core/tool_router.py - Normalized logs
agent_core/normalized_logs.json
Webhook handling
- Webhook receiver
agent_core/webhook_server.py - Received alerts
agent_core/received_alerts.json
Other components
- Operator
Connections 15
- Operator → Report pipeline: runs
agent_core/pipeline.py - Report pipeline → Runtime config: reads
agent_core/pipeline.py - Report pipeline → Security events: reads
agent_core/pipeline.py - Report pipeline → Event summarizer: summarizes and sorts
agent_core/pipeline.py - Report pipeline → Report generator: builds and saves
agent_core/pipeline.py - Report pipeline → Config and notifier: checks and notifies
agent_core/pipeline.py - Event summarizer → Gemini API: requests summaries
agent_core/event_summarizer.py - Report generator → Gemini API: requests overview
agent_core/report_generator.py - Report generator → Daily reports: writes report
agent_core/report_generator.py - Config and notifier → IP lookup API: sends notification
agent_core/notifier.py - Operator → Webhook receiver: posts alerts
- Webhook receiver → Received alerts: writes alerts
agent_core/webhook_server.py - Operator → Tool router: requests investigation
- Tool router → Normalized logs: reads failed logins
agent_core/tool_router.py - Tool router → IP lookup API: looks up IP
agent_core/tool_router.py