Build a security log triage & authorization analyzer
Parse imperfect logs safely, scrub leaked secrets, triage login anomalies with alternative hypotheses, and audit access matrices.
Your brief
Turn cybersecurity foundations into verifiable tooling: ingest malformed JSON-lines auth logs without losing evidence, scrub credentials before reporting, flag brute-force-then-new-IP anomalies as investigative leads, audit tenant access matrices, inspect cookie security headers, and emit a sanitized triage report.
Node.js 22.12+ and familiarity with JSON, cookies, and authentication basics. Review cybersecurity foundations whenever a concept is unfamiliar.
Analyzes synthetic offline logs and pure policy functions without connecting to live SIEMs or real production credentials.
Save starter.mjs, checks.mjs, and sample-events.jsonl in one folder. Run node checks.mjs ./starter.mjs 1 through 6, or node starter.mjs sample-events.jsonl.
0 / 6 steps verified by you. Checks are self-reported; this website does not execute your code.
- 1
Parse JSON-lines without silently losing evidence
Handle empty and corrupted log entries separately instead of crashing.
- 2
Scrub credentials before storing or sharing
Prevent incident reports from creating a second credential leak.
- 3
Detect login anomalies as leads, not verdicts
Correlate failed bursts and new-IP successes while preserving benign hypotheses.
- 4
Audit role and tenant access-control matrices
Catch broken object-level authorization (IDOR/BOLA) automatically.
- 5
Inspect session cookie security attributes
Verify transport, script-isolation, and cross-site cookie flags.
- 6
Assemble the sanitized incident report & interview defense
Combine timeline evidence, unknowns, and reversible containment steps.