Created and developed by Shankar M · GitHub: ShankarSec
v1.0.0 • CLI • Python library • Local dashboard • MIT License
CLUESTREAM converts heterogeneous security logs into structured, evidence-linked investigation reports. It normalises events from multiple sources, runs heuristic and Sigma detections, correlates related activity, builds modelled attack chains, maps findings to MITRE ATT&CK, supports analyst triage, and produces investigation dossiers.
CLUESTREAM supports offline batch analysis of supplied evidence and an opt-in live REST API mode for authenticated batch-event analysis, alert/case/evidence storage, and the local dashboard. It does not perform host or network response actions, send telemetry, check for updates, or automatically enrich indicators through remote services.
Scope: CLUESTREAM is an investigation and analysis aid for security triage and incident review. Live mode accepts submitted event batches and, when enabled, runs a token-authenticated HTTP collector, a syslog listener and a file watcher for forwarders/exports (see
COLLECTION.md). It is not a replacement for a production SIEM or EDR.
- Key capabilities
- How it works
- Requirements
- Installation
- Quick start
- CLI reference
- Output and evidence
- Optional local dashboard
- Configuration
- Verification
- Known limitations
- Security and responsible use
- Project structure
- Documentation and license
- Parses supported syslog and authentication logs, selected Apache/Nginx/IIS records, firewall/IDS/DNS events, Windows Security and Sysmon data, cloud and SaaS records, CSV/TSV, JSON, gzip, and bounded ZIP inputs.
- Converts supported input formats into a common event representation for downstream analysis.
- Applies resource guards for line length, decompressed size, event count, and spool storage.
- Includes 44 heuristic detectors and 97 bundled Sigma rules.
- Supports custom Sigma rules and allowlists.
- Reports unsupported Sigma features instead of silently treating them as successfully evaluated.
- Provides severity, confidence, business-impact context, P1–P4 priority, and explainable risk scoring.
- Records an explicit
analysis_statuswhen input cannot be meaningfully assessed.
- Correlates related alerts and builds modelled attack chains.
- Produces evidence-first investigation narratives.
- Distinguishes OBSERVED, INFERRED, HYPOTHESIS, and UNKNOWN statements.
- Records evidence gaps, relationships, and recommended next investigative steps.
- Derives deterministic advisory signals — similar-alert clusters, volume bursts, rare techniques, and unusually active hosts — from existing analysis results. These signals introduce no new facts.
- Creates a SHA-256 manifest for original input files.
- Links alerts to source files and relevant line references where available.
- Provides report auditing to re-check evidence hashes and internal consistency.
- Supports report-to-report change notes through
diff.
- Uses pinned Enterprise ATT&CK v14.1 mappings.
- Labels mapping provenance as inferred where applicable.
- Extracts and classifies indicators of compromise (IOCs).
- Supports STIX 2.1 export.
- Provides detector/Sigma coverage self-assessment and labelled-corpus quality evaluation.
- Generates JSON, TXT, and HTML reports by default.
- Supports optional PDF and DOCX dossier generation.
- Can export IOC CSV and STIX 2.1.
- Supports redaction of credential-like strings in raw evidence.
- Can create a redacted handoff bundle with an
INDEX.jsoncontaining report hashes.
chokepointsranks modelled attack-chain choke points.adaptconverts supported Splunk, Elastic, Sentinel, Wazuh, and Graylog exports into CLUESTREAM JSONL.source-intelclassifies IP addresses using local data.decodesafely decodes supported encoded payloads without executing them.reviewprovides an offline, deterministic, multi-perspective review workflow.
| View | Image |
|---|---|
| Analyst sign-in | ![]() |
| Command Overview | ![]() |
| Log Explorer | ![]() |
| Tuning Advisor | ![]() |
| Entities & IOCs | ![]() |
| PDF incident brief | ![]() |
A short animated walkthrough is available at docs/screenshots/demo.gif.
CLI / Python library
|
v
Configuration and input validation
|
v
Ingestion and normalization
|
v
Heuristic detections + Sigma rules
|
v
Suppression and deduplication
|
v
Correlation and attack-chain modelling
|
v
Triage and MITRE ATT&CK mapping
|
v
Risk assessment, evidence and IOC extraction
|
v
Investigation narratives
|
v
Canonical AnalysisResult
|
v
JSON / TXT / HTML / PDF / DOCX / CSV / STIX outputs
The CLI and Python library are the primary interfaces. The optional dashboard is a local presentation and investigation interface backed by the same engine.
- Python 3.10 or newer (declared in
pyproject.toml). - A supported operating system able to run the Python environment and setup script (Linux, macOS, or Windows).
- Sufficient local disk space and memory for the input dataset and reports.
Runtime dependencies are PyYAML, fpdf2, fonttools, and python-docx. No browser, database server, or network service is required.
Clone the repository:
git clone https://github.com/ShankarSec/ClueStream.git
cd ClueStreamRun the setup script:
bash setup.shThe setup script creates a virtual environment, installs the runtime dependencies, and verifies the CLI.
CLUESTREAM supports two operation modes:
| Mode | Install command | Network | Use case |
|---|---|---|---|
| Offline (default) | bash setup_offline.sh |
No outbound connections | Air-gapped analysis, DFIR |
| Live | bash setup_live.sh |
Local HTTP | API integration and local testing |
Offline mode is the default and makes no outbound network connections. The
optional local dashboard uses loopback HTTP. Live mode is opt-in and adds an
authenticated REST API for submitted event batches, persistent SQLite storage,
local user accounts/RBAC, MFA, and live dashboard views. The live command
also starts the HTTP log collector, syslog listener and file watcher when their
collectors.*.enabled flags are set.
# Offline-only (zero network dependencies)
bash setup_offline.sh
# Live mode (REST API batch analysis, local accounts, MFA)
bash setup_live.shSee DEPLOYMENT.md for detailed deployment options including
Docker images and systemd service files.
Activate the environment if desired:
source .venv/bin/activateOn Windows, use the activation command appropriate to your shell. A native
Windows installer (ClueStream_Setup_v1.0.0.exe) is provided separately and
bundles portable Python with the application; see the Windows installation note.
Display CLI help:
.venv/bin/cluestream --helpAnalyse the included authentication sample:
.venv/bin/cluestream analyze samples/auth_sample.log -o /tmp/cluestream-outThe standard analysis output includes JSON, HTML, and TXT. Add --pdf and/or
--docx when those dossier formats are required.
Start the REST API server and dashboard in live mode:
# Live mode uses the same installed package dependencies
.venv/bin/cluestream live --host 127.0.0.1 --port 8080The dashboard is available at http://127.0.0.1:8765 and the REST API at
http://127.0.0.1:8080. See API.md for endpoint documentation.
Check the installed version:
.venv/bin/cluestream version| Command | Purpose |
|---|---|
analyze <target> |
Run the analysis pipeline and generate reports. |
diff <a.json> <b.json> |
Derived change note: alert, risk, chain, and IOC deltas. |
audit <report.json> |
Re-verify evidence hashes and report consistency. Supports --source-dir, -o DIR. |
coverage [--report report.json] |
Evidence-based detector and Sigma coverage self-assessment. |
quality [--corpus DIR] |
Evaluate detection quality against a labelled corpus. Supports --max-files, -o DIR. |
chokepoints <report.json> |
Rank modelled attack-chain choke points. Supports --top, -o DIR. |
tune <report.json> |
Derive pilot tuning guidance (thresholds, suppression, coverage gaps). Supports -o DIR. |
brief <report.json> |
Generate a clean, one-look incident brief as PDF, DOCX or both (--format, -o). |
adapt <vendor> <export> --out FILE |
Convert supported SIEM exports into CLUESTREAM JSONL. |
ioc <report.json> |
Extract and classify IOCs from a report. |
mitre <target> |
Map supported logs and findings to ATT&CK. |
mitre --validate - |
Validate bundled ATT&CK mappings. |
investigate auth <logfile> |
Authentication-focused investigation view. |
decode <payload> |
Decode supported encoded payloads without executing them. |
source-intel <ip> |
Classify an IP using local intelligence data. |
sigma validate <path> |
Validate bundled or custom Sigma rules. |
sigma list |
List available Sigma rules. |
review evaluate / review proposals |
Offline deterministic review workflow. |
web |
Start the optional authenticated local dashboard. |
collect-token rotate / status |
Rotate or inspect the HTTP collector token (Phase 6). |
version |
Print the product version. |
- Output:
--json,--txt,--html,--pdf,--docx - Intelligence:
--ioc-csv,--stix - Handling:
--redact,--handoff,--set KEY=VALUE,--rules - Toggles:
--no-sigma,--no-dedup
Run cluestream analyze --help for exact syntax and defaults.
CLUESTREAM produces a canonical analysis result and renders supported formats from it, keeping findings consistent across report types.
| Format | Intended use |
|---|---|
| JSON | Complete machine-readable analysis result. |
| TXT | Plain-text investigation summary. |
| HTML | Navigable report for browser review. |
| Portable investigation dossier. | |
| DOCX | Editable investigation dossier. |
| IOC CSV | Indicator export for spreadsheet and analyst workflows. |
| STIX 2.1 | Structured threat-intelligence exchange. |
Human-readable dossiers open with an incident summary and prioritised analyst brief. Detailed ATT&CK, IOC, relationship, evidence, and detection records are included in appendices or the complete machine-readable result, as applicable.
- Original input files are represented in a SHA-256 manifest.
- Alerts reference source evidence, including file and line details where available.
auditchecks evidence hashes and report consistency.--redactmasks credential-like strings in raw evidence.--handoffcreates a redacted bundle and anINDEX.jsoncontaining report hashes.
A hash manifest supports integrity checking against recorded hashes. It is not a digital signature and does not independently prove authorship. If an attacker can modify both evidence and its manifest, the manifest alone cannot establish authenticity.
CLUESTREAM includes a standard-library-based local web dashboard under
cluestream/web/. It serves the bundled interface and reads actual
incident_report.json output through an authenticated JSON API.
cluestream webDefault address: http://127.0.0.1:8765
Useful options:
cluestream web --port 8765
cluestream web --host 127.0.0.1 --port 9000
cluestream web --no-browserThe default bind address is loopback (127.0.0.1). Passing a different --host
may expose the service to other interfaces; do so only with a suitable security
boundary.
The Python module entry point is also available:
python -m cluestream.web.app --port 8765At startup the server prints a freshly generated credential:
URL: http://127.0.0.1:8765
Username: admin
Password: <generated at startup>
- The password is generated with
secrets.token_urlsafe(32). - Plaintext exists only in process memory; it is never written to a file.
- Verification uses a salted PBKDF2-SHA256 hash.
- There is no persistent credential or password environment override.
- Sessions expire after 30 minutes of inactivity; use Logout to end a session.
Keep the startup password private. Do not paste it into screenshots, issue reports, terminal transcripts, or public logs.
The dashboard is a locally served investigation workbench with a dark-navy and
cyan identity, grouped navigation, global search, scan selection, responsive
cards and evidence-focused tables. Its nine workspaces are Command Overview,
Investigations, Log Explorer, Evidence & Integrity, Threat Graph &
ATT&CK, Entities & IOCs, Tuning Advisor, Live Monitor, and
Reports, Access & Audit. The split-screen login page and sidebar use the
bundled banner.png. The interface is implemented with local HTML, CSS and
JavaScript; it does not require Tailwind, Google Fonts, a CDN, or an internet
connection to render.
Dashboard values are hydrated from the authenticated /api/dashboard report
payload. The overview charts, incident queue, linked evidence, entity registers,
IOC table, technique mappings, relationship register, attack-chain records and
narrative timeline use report-derived data. Demonstration-only counts and
fabricated incident records from the visual reference are not used. The scan
selector scopes incidents, alerts, detections, evidence, entities, IOCs,
relationships, stories, charts and global search to the selected report set.
Uploading a new scan does not delete earlier scan reports; Clear Data is a
separate, explicit Admin action.
The Reports, Access & Audit workspace reads saved report files from the reports folder, supports authenticated nested report downloads, current-scope JSON and CSV exports, local user creation (Admin only), MFA setup and verification, and audit review. Analyst triage status, owner and notes are stored as local workspace metadata; they do not modify the original immutable incident report. Startup-admin TOTP secrets are stored in the private dashboard state directory with restrictive file permissions so MFA remains enabled after a server restart. The dashboard does not advertise PDF/DOCX generation; use the CLI report options for those formats.
See DASHBOARD_REDESIGN.md for the workspace layout,
API wiring and design/implementation notes.
CLUESTREAM loads config.yaml from the working directory, the path in
CLUESTREAM_CONFIG, or ~/.cluestream/config.yaml.
Override individual values per run with the repeatable option:
cluestream analyze <target> --set key.path=valueResource guards cover line length, decompressed input size, event count, and spool directories. See INSTALL.md for installation and configuration details. Do not commit secrets, private logs, customer data, or sensitive production configuration.
This release was validated with 1328 automated tests covering the CLI
(including cluestream web), the analysis engine, and the narrative report
profile. To keep the installable tree minimal, the test suite and verification
guides are maintained outside this application tree; contact the maintainer if
you need the validation archive.
The following commands validate bundled Sigma rules and display the installed version:
cluestream sigma validate cluestream/rules/sigma
cluestream version- EVTX, PCAP/PCAPNG, and 7-Zip inputs are supported; EVTX chunk-level compression may result in partial analysis.
- Sigma support is a documented subset. Aggregations,
near/timeframe, correlation rules, and some modifiers are reported as unsupported. - No GeoIP database or bundled reputation dataset is provided.
- Automatic remote enrichment is not performed.
- Offline file analysis is batch-oriented. Live REST analysis accepts submitted event batches and HTTP forwarder batches; raw events are not retained.
- The HTTP collector, syslog listener and file watcher are wired into
livewhen enabled; they are lightweight, single-process sources (seeCOLLECTION.md). Treat them as analyst aids, not a full SIEM ingestion tier. - The live API, dashboard and collector use plain HTTP. Use a TLS-terminating
reverse proxy (see
packaging/nginx-cluestream.conf/Caddyfile) and a firewall allow-list before exposing them beyond localhost. - The optional sealed raw-evidence vault uses an HMAC/SHA-256 construction; it is at-rest protection, not a replacement for an audited AEAD cipher or disk encryption.
- Heuristic detections can produce false positives and may miss unseen activity.
- Large or hostile inputs should be processed under OS resource limits.
Do not interpret a missing alert as proof that an event did not occur.
Use CLUESTREAM only with data you are authorised to access and analyse.
- Treat logs, reports, IOCs, and evidence bundles as potentially sensitive.
- Protect generated reports and handoff bundles with appropriate access controls.
- Do not publish credentials, private logs, customer data, or real incident evidence.
- Review redacted exports before sharing; automated redaction may miss a value.
- Treat detections, risk scores, correlations, attack chains, and intelligence signals as analyst leads — not proof of malicious activity.
- Apply external OS resource limits for untrusted or unusually large inputs.
- Keep the optional dashboard on loopback unless you have deliberately designed and secured a broader deployment.
cluestream/
analysis pipeline
ingestion and normalization
detections and Sigma rules
correlation and attack-chain logic
triage, MITRE mapping and risk
evidence and IOC handling
report writers
optional local dashboard
packaging/
system installation and removal scripts
samples/
bundled authentication sample
config.yaml
runtime configuration
The exact package inventory may change between releases. Consult the repository tree and INSTALL.md for current installation details.
- Installation and setup
- Deployment guide
- REST API reference
- Live log collection guide
- Enable/disable live logging on Kali and Windows
- Pilot and tuning guide
- GitHub upload walkthrough
- Changelog · Contributing · Citation
- Security documentation
- GitHub release readiness
- MIT license
CLUESTREAM
Created and developed by Shankar M
GitHub: ShankarSec/ClueStream





