Insider cases differ from external intrusions in one decisive way - the suspect has legitimate access, knows the environment, and may notice the investigation. The response must therefore be quiet, legally sound, and evidence-led: preserve first, confront last, and never let an employment decision destroy the forensic record. Most suspected insiders turn out to be negligent or compromised rather than malicious, and the response must keep all three hypotheses open until the evidence closes them. Authorized incident response only, with HR and legal involved from the start.
Quick Workflow
- Open a restricted case with HR, legal, and the incident commander only, and limit knowledge on a strict need-to-know basis.
- Preserve evidence silently - logs, mailbox, file access records, endpoint telemetry - before any access change or confrontation.
- Build a baseline of the subject's normal access and behaviour before judging any anomaly.
- Classify the hypothesis - malicious, negligent, or compromised account - and test each against the evidence.
- Revoke or narrow access in a way that matches the risk, without alerting the subject prematurely where counsel advises silence.
- Interview only with HR and legal present, following the agreed plan and local employment law.
- Contain the damage - revoke shared secrets, rotate credentials the subject touched, and recover or confirm the fate of data.
- Close with a documented outcome, lessons for access design, and monitoring for the return of the same pattern.
1. Quiet evidence preservation
Preservation comes before any visible action. Once a subject knows they are under investigation, logs get deleted, devices get wiped, and the story gets coordinated. Capture the record first, from systems the subject cannot reach, and hash everything.
# Preservation checklist, executed from a jump host the subject cannot access
# - identity provider sign-in and access logs for the subject
# - file server and cloud storage access and download logs
# - mailbox send, forward, and rule-change logs
# - endpoint process and USB device history
# - badge, VPN, and remote access logs for the same period
# Store copies under the case number, never in the subject's own folders.
mkdir -p /evidence/INS-2026-0041
echo "preservation complete before any access change or interview"
# osquery: check for data staging on the subject's workstation
# Large archives in temp folders or on removable media are a
# classic pre-exfiltration pattern. Run this from the EDR console
# or Velociraptor, not interactively on the subject's machine.
osqueryi --json "SELECT path, size, mtime FROM file WHERE path LIKE '/tmp/%' AND size > 100000000 ORDER BY mtime DESC LIMIT 20;"
# Velociraptor: collect a triage package without alerting the user
# Prefer a silent server-side collection over an interactive session.
velociraptor --config server.config.yaml query \
"SELECT client_id, hostname FROM clients() WHERE hostname = 'wkstn-114'"
echo "triage package stored under the case number, chain of custody started"
2. Baseline before judgement
An anomaly is only an anomaly against a baseline. A developer downloading a repository at midnight may be normal for that team and damning for a finance analyst. Pull the subject's role, their team's norms, their approved projects, and their access history before deciding that any single event is suspicious.
#!/usr/bin/env python3
"""Compare subject activity against their own baseline, not the company average."""
baseline = {
"normal_hours": "08:00-18:00",
"normal_sources": ["office", "vpn-corporate"],
"normal_volume_mb_per_day": 120,
"approved_repos": ["payments-api", "payments-docs"],
}
observed = {
"hours": "02:14",
"source": "vpn-corporate",
"volume_mb": 4800,
"repo": "payments-api",
}
flags = []
if observed["hours"] < "06:00" or observed["hours"] > "22:00":
flags.append("out-of-hours access")
if observed["volume_mb"] > baseline["normal_volume_mb_per_day"] * 5:
flags.append("volume far above personal baseline")
print("flags:", flags if flags else "none on these measures")
print("a flag is a question for the evidence, not a verdict")
3. Test the three hypotheses
Every insider case must test malicious, negligent, and compromised in parallel. A mailbox rule forwarding mail externally looks malicious until you find the attacker who set it. A bulk download looks like theft until you find the approved migration ticket. Closing one hypothesis early is how innocent staff get fired and real attackers get missed.
# Hypothesis test checklist
# Malicious: motive evidence (resignation, discipline, job search),
# selective targeting of valuable data, concealment behaviour
# Negligent: policy violation without concealment, approved intent,
# no attempt to hide, data still inside the organisation
# Compromised: impossible travel, new device, credential stuffing
# indicators, attacker tooling on the endpoint, no motive evidence
# Record which evidence supports and which contradicts each hypothesis.
cat > /evidence/INS-2026-0041/hypotheses.txt <<'EOF'
malicious: supports [], contradicts []
negligent: supports [], contradicts []
compromised: supports [], contradicts []
EOF
cat /evidence/INS-2026-0041/hypotheses.txt
4. Access revocation without tipping off
Revocation timing is a legal and safety decision, not a purely technical one. Counsel may advise silent monitoring while evidence is gathered, or immediate suspension where data loss is ongoing. When revocation happens, do it completely - every account, every shared secret, every VPN token, every cloud session - because a partial revocation leaves the exact channel the subject will use.
# Complete revocation checklist, executed in one window
# - disable the primary account and all service accounts
# - revoke active sessions and refresh tokens in every system
# - remove VPN, remote access, and cloud console access
# - rotate shared passwords and API keys the subject knew
# - remove the subject from privileged groups and distribution lists
# - collect or remotely lock corporate devices per policy
# Verify each item, do not assume the identity provider synced it.
echo "revocation verified system by system, not assumed from one console"
# Check for lingering access after revocation
# Look for active sessions, API keys, and scheduled jobs created
# by the subject that survive account disablement.
# Scheduled tasks and cron jobs are a common persistence route
# for a departing insider, and they outlive the account itself.
echo "check: active sessions, API keys, scheduled tasks, service accounts"
echo "any survivor is treated as a containment failure until closed"
5. Interview and outcome
Interviews happen with HR and legal present, on a written plan, and after the evidence is preserved. The interviewer asks open questions and lets the subject explain, because the explanation sometimes closes the case cleanly and sometimes contradicts the logs in a way that strengthens it. Never promise confidentiality you cannot keep, never threaten criminal action to force a confession, and never interview alone.
# Interview preparation file (restricted, case number only)
cat > /evidence/INS-2026-0041/interview-plan.txt <<'EOF'
participants: HR lead, legal counsel, incident commander
evidence to present: [log excerpts, timeline, not raw dumps]
questions: what, when, why, who else knew, where is the data now
boundaries: no promises of confidentiality, no threats, stop if
the subject requests legal representation
outcome options: no case, training, discipline, termination,
referral to law enforcement
EOF
cat /evidence/INS-2026-0041/interview-plan.txt
Edge cases
- The subject is a privileged administrator. They may hold the keys to the logging system itself. Bring in a second administrator, preserve logs off-system first, and assume any log the subject could edit is incomplete.
- The subject resigns mid-investigation. Preserve everything before the last day, collect devices on exit, and revoke access at the moment of departure, not at the end of the notice period.
- The data went to a personal cloud account. Recovery depends on legal process and the provider, not on asking nicely. Counsel owns the recovery path, and the technical team owns the proof of what left.
- The suspect is a contractor or partner. Your employment levers do not apply. Work through the vendor's security contact and your contract terms, and revoke their access first.
- The evidence points to a compromised account, not a malicious insider. Pivot the case to credential theft, reset the account properly, and close the insider case with that finding recorded.
- Colleagues start gossiping. Remind the need-to-know group that the case is confidential, and never confirm or deny details to anyone outside it, including the subject's manager.
Key references
- CISA insider threat mitigation guide: https://www.cisa.gov/insider-threat-mitigation
- NIST SP 800-61 Rev. 2 incident handling: https://csrc.nist.gov/publications/detail/sp/800-61/rev-2/final
- CERT insider threat research (Carnegie Mellon SEI): https://www.sei.cmu.edu/our-work/insider-threat/
- Related skills in this repo - incident-response, incident-breach-scoping, incident-timeline-analysis, incident-containment-playbooks, data-breach-notification.
