# Case Intel

**Investigation case management for fraud, abuse and threat-intelligence teams.**
`case-intel.infinity-sdg.com`. An Infinity Software Development Group product built on Kalos/ADL.

```
investigation (legal basis, retention) → entities → links → evidence (sourced, checksummed)
  → findings (peer-reviewed) → responses (takedowns, blocks, referrals) → report
```

## What it enforces

The rules below are enforced on the server, so no screen or API call can skip them.

- **Every investigation states its legal basis and a retention date.** A nightly schedule archives closed cases past retention.
- **Evidence is append-only.** It carries its source and a SHA-256 of exactly what was captured, and collection stops when a case closes.
- **A finding cites the evidence it rests on**, with a stated confidence.
- **Findings need peer review.** A finding is accepted or rejected only by someone other than its author, and a rejection needs a written note.
- **Reports rest on reviewed findings.** A report is approved only when the case has at least one accepted finding and nothing still in draft or review.
- **A case is marked reported only once a report has gone out.**
- **Closing a case needs a written disposition.**
- **Every change is audited** with the old and new values, who made it and when.

The model tracks **infrastructure and organizations**: domains, IP addresses, URLs, wallets, platform account handles, organizations and file hashes. It has no fields for personal data about private individuals.

## Resources

`investigation` · `entity` · `link` · `evidence` · `finding` · `response` · `report`

Views: **caseBoard**, **reviewQueue**, **openResponses**.
Roles: `analyst`, `lead`, `reviewer`, `admin`.

## Demo data

The demo data is a fraud team's caseload of 10 fictional operations against a fictional bank, Northbank. They include a phishing kit, a fake investment-signals channel, an invoice redirect, a loader malware campaign, a counterfeit storefront, an account-takeover wave, and others.
- **Stages:** two cases are closed with a disposition (one past retention, so it's due for archiving), three have been reported, three are active with findings in review, and two have just opened.
- **Peer review:** two findings were rejected in review, each with a reviewer's note.
- **Responses:** takedowns, blocks and referrals at every stage, including one takedown the registrar declined.
- **Safe identifiers:** every domain uses the reserved `.example` domain, every IP address comes from the documentation ranges, and every wallet and handle is invented.

Regenerate the seed with `python3 seeds/gen_seed.py`.

## Run it

This repo runs on a [Kalos](https://github.com/datajango/kalos) checkout, as one of its `*.infinity-sdg.com` sub-domain sites.

```bash
export KALOS_REPO=~/kalos        # defaults to ../kalos beside this repo
scripts/kalos.sh validate        # static checks (adlref + config + seed)
scripts/kalos.sh start           # certs + fresh DB + kalosd on :9210
scripts/kalos.sh verify          # boot, seed, exercise over TLS, stop
```

Sign in as `admin` / `Admin123!`, or as `analyst1`, `lead1` or `reviewer1` / `Demo123!`.

## Reselling

The product is generic. To brand it for a customer, change `site.json`, the port in `config.json`, and the data in `seeds/gen_seed.py`.
