How kaitolim7/yamato-security-analysis works
This Python tool collects Cloudflare Workers telemetry, normalizes and privacy-protects events, persists them with checkpoints, exports iwatobi-compatible logs, and runs analysis. The main path is daily.py or bridge.py coordinating bridge functions and the external iwatobi executable. The README also documents setup, diagnostics, and input-compatibility verification. Source excerpts show core calls, but omit portions of bridge.py; relationships for unsampled bridge internals are therefore not expanded.
Main entry points: bridge.py Collection CLI · daily.py Daily scheduler · check_iwatobi.py Compatibility verifier · iwatobi-formats.yaml Custom log format
Components 10
Collection
- Collection CLI
code/bridge.py - Daily scheduler
code/daily.py
Log processing
- Event normalization
code/bridge.py - Event and checkpoint store
code/bridge.py - Log export
code/bridge.py
Analysis and verification
- Compatibility verifier
code/check_iwatobi.py - Custom log format
code/iwatobi-formats.yaml
Other components
- Operator
- Cloudflare API
- iwatobi engine
Connections 16
- Operator → Collection CLI: runs commands
README.md - Operator → Daily scheduler: starts job
README.md - Collection CLI → Cloudflare API: queries telemetry
code/bridge.py - Collection CLI → Event normalization: normalizes events
README.md - Collection CLI → Event and checkpoint store: saves events
README.md - Collection CLI → Log export: exports logs
README.md - Daily scheduler → Collection CLI: calls bridge
code/daily.py - Daily scheduler → Cloudflare API: queries batches
code/daily.py - Daily scheduler → Event normalization: normalizes events
code/daily.py - Daily scheduler → Event and checkpoint store: stores progress
code/daily.py - Daily scheduler → Log export: exports period
code/daily.py - Collection CLI → iwatobi engine: runs analysis
README.md - Daily scheduler → iwatobi engine: runs analysis
code/daily.py - Compatibility verifier → iwatobi engine: probes input
code/check_iwatobi.py - Compatibility verifier → Custom log format: configures format
code/check_iwatobi.py - Compatibility verifier → Collection CLI: uses safe paths
code/check_iwatobi.py