Case Intel
Investigation case management for fraud, abuse, and threat-intelligence teams enforcing independent review, immutable evidence on closed cases, and verified reports.
- Resources (7)
- investigation, entity, link, evidence, finding, response, report
- Roles (4)
- analyst, lead, reviewer, admin
- Features (10)
- suitepermissionsstate_machinevalidationrules_engineviewsscheduled_tasksaudithistory_eventsindexes
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
.exampledomain, 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 checkout, as one of its *.infinity-sdg.com sub-domain sites.
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!.
Domain Resource Summary
| Resource | Purpose & Lifecycle |
|---|---|
investigation | One investigation, with its legal basis and how long its data may be kept. (States: open, active, reported, closed, archived) |
entity | An observable: a domain, IP, URL, wallet, platform account handle, organization or file hash. |
link | A relationship between two entities, with the analyst’s confidence. |
evidence | Something captured from a source, with a checksum of exactly what was captured. Append-only. |
finding | An analytic judgment, citing the evidence it rests on. Accepted only after peer review. (States: draft, in_review, accepted, rejected) |
response | An action taken on the findings: takedown request, block-list entry, referral, customer notice. (States: requested, completed, declined) |
report | What leaves the team. Approved only on accepted findings. (States: draft, approved, sent) |
Domain definition
Download rawdomain.yaml (363 lines)
Inspect domain.yaml (363 lines)
# case-intel/backend/domain.yaml
#
# Case Intel — investigation case management for fraud, abuse and
# threat-intelligence teams.
#
# investigation (legal basis, retention) → entities (domains, IPs, wallets, accounts,
# organizations, file hashes) → links → evidence (sourced, checksummed,
# append-only) → findings (confidence, peer-reviewed) → actions → report
#
# Built for defensible work: every case states its legal basis and a
# retention date, evidence is append-only with a SHA-256 of what was
# captured, a finding cites the evidence it rests on and is accepted only
# after a second analyst reviews it, a report goes out only on accepted
# findings, and closed cases past retention are archived on a schedule.
#
# The model tracks infrastructure and organizations, not private
# individuals: there are no fields for personal data.
#
# An ISDG product. query() filter keys are single lowercase words.
domain:
name: caseintel
version: "1.0.0"
description: >
Investigation case management: cases with legal basis and retention,
entities and links, sourced evidence, peer-reviewed findings, response
actions and reports.
resources:
investigation:
description: "One investigation, with its legal basis and how long its data may be kept."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
code: { type: string, required: true, unique: true, maxLength: 24 }
title: { type: string, required: true, maxLength: 200 }
kind: { type: string, required: true, enum: [phishing, payment_fraud, account_takeover, scam_network, malware, counterfeit] }
legalBasis: { type: text, required: true }
lead: { type: string, required: true, maxLength: 100 }
openedOn: { type: date, required: true }
retainUntil: { type: date, required: true }
disposition: { type: text }
status: { type: string, required: true, default: open }
validation:
retentionAfterOpening:
rule: "retainUntil == null || openedOn == null || retainUntil > openedOn"
message: "Retention must end after the case opened."
stateMachine:
field: status
initial: open
states:
open:
transitions:
activate: { to: active, guards: [analyst, lead, admin] }
active:
transitions:
report: { to: reported, guards: [lead, admin] }
close: { to: closed, guards: [lead, admin], requiredFields: [disposition] }
reported:
transitions:
close: { to: closed, guards: [lead, admin], requiredFields: [disposition] }
closed:
transitions:
archive: { to: archived, guards: [admin] }
archived: {}
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [lead, admin]
update: [lead, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [status] }
- { fields: [retainUntil] }
entity:
description: "An observable: a domain, IP, URL, wallet, platform account handle, organization or file hash."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
kind: { type: string, required: true, enum: [domain, ip_address, url, wallet, account_handle, organization, file_hash] }
value: { type: string, required: true, maxLength: 255 }
firstSeen: { type: date }
notes: { type: text }
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [analyst, lead, admin]
update: [analyst, lead, admin]
delete: [lead, admin]
features: { audit: true }
indexes:
- { fields: [investigation] }
- { fields: [kind, value] }
link:
description: "A relationship between two entities, with the analyst's confidence."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
source:
type: reference
references: "adl.caseintel.caseintel.entity"
required: true
target:
type: reference
references: "adl.caseintel.caseintel.entity"
required: true
relation: { type: string, required: true, enum: [resolves_to, hosted_on, redirects_to, paid_to, controls, impersonates, same_operator] }
confidence: { type: string, required: true, enum: [low, moderate, high] }
validation:
noSelfLinks:
rule: "source != target"
message: "An entity cannot be linked to itself."
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [analyst, lead, admin]
update: [analyst, lead, admin]
delete: [lead, admin]
features: { audit: true }
indexes:
- { fields: [investigation] }
evidence:
description: "Something captured from a source, with a checksum of exactly what was captured. Append-only."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
entity:
type: reference
references: "adl.caseintel.caseintel.entity"
sourceType: { type: string, required: true, enum: [public_web, dns_record, certificate_log, blockchain, platform_report, customer_report, sandbox] }
sourceUrl: { type: url }
description: { type: text, required: true }
capturedAt: { type: datetime, required: true }
capturedBy: { type: string, required: true, maxLength: 100 }
sha256: { type: string, required: true, maxLength: 64, pattern: "^[a-f0-9]{64}$" }
validation:
evidenceIsAppendOnly:
rule: "isCreate()"
message: "Evidence is never edited. Capture it again as new evidence."
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [analyst, lead, admin]
update: [admin]
delete: []
features: { audit: true }
indexes:
- { fields: [investigation] }
- { fields: [entity] }
finding:
description: "An analytic judgment, citing the evidence it rests on. Accepted only after peer review."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
evidence:
type: reference
references: "adl.caseintel.caseintel.evidence"
required: true
statement: { type: text, required: true }
confidence: { type: string, required: true, enum: [low, moderate, high] }
author: { type: string, required: true, maxLength: 100 }
reviewedBy: { type: string, maxLength: 100 }
reviewNote: { type: text }
status: { type: string, required: true, default: draft }
stateMachine:
field: status
initial: draft
states:
draft:
transitions:
submit: { to: in_review, guards: [analyst, lead, admin] }
in_review:
transitions:
accept: { to: accepted, guards: [reviewer, lead, admin], requiredFields: [reviewedBy] }
reject: { to: rejected, guards: [reviewer, lead, admin], requiredFields: [reviewedBy, reviewNote] }
accepted: {}
rejected: {}
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [analyst, lead, admin]
update: [analyst, reviewer, lead, admin]
delete: [lead, admin]
features: { audit: true }
history:
events:
findingAccepted: { trigger: transition, transition: accept, severity: success }
findingRejected: { trigger: transition, transition: reject, capture: [reviewNote], severity: warning }
indexes:
- { fields: [investigation] }
- { fields: [status] }
response:
description: "An action taken on the findings: takedown request, block-list entry, referral, customer notice."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
entity:
type: reference
references: "adl.caseintel.caseintel.entity"
required: true
kind: { type: string, required: true, enum: [takedown_request, block_list, referral, customer_notice, account_suspension] }
recipient: { type: string, required: true, maxLength: 120 }
requestedOn: { type: date, required: true }
outcome: { type: text }
status: { type: string, required: true, default: requested }
stateMachine:
field: status
initial: requested
states:
requested:
transitions:
complete: { to: completed, guards: [analyst, lead, admin], requiredFields: [outcome] }
decline: { to: declined, guards: [analyst, lead, admin], requiredFields: [outcome] }
completed: {}
declined: {}
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [lead, admin]
update: [analyst, lead, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [investigation] }
report:
description: "What leaves the team. Approved only on accepted findings."
object:
id: { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
investigation:
type: reference
references: "adl.caseintel.caseintel.investigation"
required: true
audience: { type: string, required: true, enum: [internal, customer, partner, authority] }
summary: { type: text, required: true }
approvedBy: { type: string, maxLength: 100 }
sentOn: { type: date }
status: { type: string, required: true, default: draft }
stateMachine:
field: status
initial: draft
states:
draft:
transitions:
approve: { to: approved, guards: [lead, admin], sets: { approvedBy: $user.id } }
approved:
transitions:
send: { to: sent, guards: [lead, admin], sets: { sentOn: now() } }
sent: {}
permissions:
list: [analyst, lead, reviewer, admin]
get: [analyst, lead, reviewer, admin]
create: [analyst, lead, admin]
update: [analyst, lead, admin]
delete: [admin]
features: { audit: true }
indexes:
- { fields: [investigation] }
rules:
noEvidenceOnClosedCases:
description: "Collection stops when a case closes."
trigger: { resource: evidence, events: [create] }
condition: "some(query('investigation', { id: $record.investigation }), c => c.status == 'closed' || c.status == 'archived')"
action: reject
severity: error
message: "This case is closed. Evidence can no longer be added."
reviewerIsNotTheAuthor:
description: "A finding is accepted or rejected by someone other than its author."
trigger: { resource: finding, events: [transition], transition: accept }
condition: "$record.reviewedBy == $record.author"
action: reject
severity: error
message: "The author cannot review their own finding."
reportsRestOnAcceptedFindings:
description: "A report is approved only when the case has an accepted finding and no findings still in draft or review."
trigger: { resource: report, events: [transition], transition: approve }
condition: "len(query('finding', { investigation: $record.investigation, status: 'accepted' })) == 0
|| len(query('finding', { investigation: $record.investigation, status: 'draft' })) > 0
|| len(query('finding', { investigation: $record.investigation, status: 'in_review' })) > 0"
action: reject
severity: error
message: "Every finding must be reviewed, and at least one accepted, before the report is approved."
caseReportedOnlyWithASentReport:
description: "A case is marked reported only once a report has gone out."
trigger: { resource: investigation, events: [transition], transition: report }
condition: "len(query('report', { investigation: $record.id, status: 'sent' })) == 0"
action: reject
severity: error
message: "Send a report before marking the case reported."
schedules:
archiveExpiredCases:
description: "Closed cases past their retention date are archived every night."
recurrence: daily at 02:00
source:
resource: investigation
filter: "status == 'closed' && retainUntil < today()"
action: transition
transition: archive
views:
caseBoard:
description: "Every case, its stage and its retention date."
source: investigation
permissions: [analyst, lead, reviewer, admin]
columns:
- { field: code, label: "Case" }
- { field: title, label: "Title" }
- { field: kind, label: "Kind" }
- { field: status, label: "Stage" }
- { field: retainUntil, label: "Retain until" }
defaultLimit: 200
reviewQueue:
description: "Findings waiting for a second analyst."
source: finding
filter: "status == 'in_review'"
permissions: [reviewer, lead, admin]
columns:
- { field: statement, label: "Finding" }
- { field: confidence, label: "Confidence" }
- { field: author, label: "Author" }
defaultLimit: 200
openResponses:
description: "Takedowns, block-list entries and referrals still waiting on the other party."
source: response
filter: "status == 'requested'"
permissions: [analyst, lead, admin]
columns:
- { field: kind, label: "Action" }
- { field: recipient, label: "Sent to" }
- { field: requestedOn, label: "Requested" }
sort: requestedOn asc
defaultLimit: 200