How zeroq/kraut_salad works
Kraut Salad is a proof-of-concept cyber-threat-intelligence and incident-handling platform. Its documented ingestion workflow starts with an operator supplying a STIX file to the load_stix management command, which parses STIX/CybOX content into relational threat-intelligence records; the README notes that unsupported elements and references are reported. The repository also provides intelligence browsing/editing, incident handling, an API, export, and OSINT/TAXII sharing. Calls between sampled components are shown where evidenced; links to unsampled web entry points are omitted.
Main entry points: models.py Intelligence records · serializers.py API serializers · load_stix.py STIX loader · views.py Intel workspace
Components 18
Intelligence ingestion
- STIX loader
kraut_parser/management/commands/load_stix.py - CybOX handlers
kraut_parser/cybox_functions.py - Intelligence records
kraut_parser/models.py
Threat intelligence
- Intel workspace
kraut_intel/views.py - Intel forms
kraut_intel/forms.py - Intel metadata
kraut_intel/models.py
Incident handling
- Incident workflow
kraut_incident/views.py - Incident forms
kraut_incident/forms.py - Incident records
kraut_incident/models.py
Access and exchange
- REST API
kraut_api/views.py - API serializers
kraut_api/serializers.py - STIX export
kraut_export/views.py - Export utilities
kraut_export/utils.py
Feed sharing
- Feed polling tasks
kraut_sharing/tasks.py - TAXII feed client
kraut_sharing/feed.py - Feed configuration
kraut_sharing/models.py - OSINT pull command
kraut_sharing/management/commands/pull_osint.py
Other components
- Operator
Connections 22
- Operator → STIX loader: loads document
- STIX loader → CybOX handlers: uses handlers
kraut_parser/management/commands/load_stix.py - STIX loader → Intelligence records: creates records
kraut_parser/management/commands/load_stix.py - CybOX handlers → Intelligence records: maps objects
kraut_parser/cybox_functions.py - Intel workspace → Intel forms: uses forms
kraut_intel/views.py - Intel workspace → Intelligence records: reads and updates
kraut_intel/views.py - Intel workspace → Intel metadata: uses metadata
kraut_intel/views.py - Incident workflow → Incident forms: uses forms
kraut_incident/views.py - Incident workflow → Incident records: updates records
kraut_incident/views.py - REST API → API serializers: serializes responses
kraut_api/views.py - REST API → Intelligence records: queries records
kraut_api/views.py - API serializers → Intelligence records: serializes models
kraut_api/serializers.py - API serializers → Incident records: serializes models
kraut_api/serializers.py - API serializers → Feed configuration: serializes models
kraut_api/serializers.py - STIX export → Export utilities: uses utilities
kraut_export/views.py - STIX export → Intelligence records: reads records
kraut_export/views.py - Export utilities → Intelligence records: reads records
kraut_export/utils.py - Feed polling tasks → Feed configuration: updates feed state
kraut_sharing/tasks.py - Feed polling tasks → TAXII feed client: polls collections
kraut_sharing/tasks.py - Feed polling tasks → STIX loader: invokes loader
kraut_sharing/tasks.py - OSINT pull command → Feed configuration: uses feed records
kraut_sharing/management/commands/pull_osint.py - OSINT pull command → Intelligence records: uses intelligence records
kraut_sharing/management/commands/pull_osint.py