Skill
Detection and monitoring
Builds the capability to notice an attack in progress — deciding what to log and retain, centralizing it somewhere tamper-resistant, writing detections that fire on attacker behav…
- Security
- detection-and-monitoring
- version 1.1.0
- MIT license
- 4 outside sources
When it loads
Your assistant reads this description and loads the skill when a request matches it. Nothing else is in context until then.
Builds the capability to notice an attack in progress — deciding what to log and retain, centralizing it somewhere tamper-resistant, writing detections that fire on attacker behavior rather than on individual events, tuning out the noise that trains people to ignore alerts, and defining what happens when something fires. Use this to design or assess monitoring coverage, work out why an incident went unnoticed, cut alert volume without losing signal, or decide what a detection capability should cost.
Add it to your assistant
This skill ships in the Security department, with 7 others.
Claude Code
/plugin marketplace add cbrock84/headcount
/plugin install security@headcount
ChatGPT and Codex
This department is packaged for the ChatGPT plugin directory and not listed there yet. Until it is, add this repository as a plugin marketplace, or copy plugins/security/skills/ into .agents/skills/ in your own project.
GitHub Copilot CLI
copilot plugin marketplace add cbrock84/headcount
copilot plugin install security@headcount
Cursor
The repository is a Cursor plugin marketplace. On a Teams or Enterprise plan, import it under Dashboard, Plugins & MCPs, New marketplace, Import from a repository. To try this department on one machine, copy plugins/security into ~/.cursor/plugins/local/ and reload the window.
Gemini CLI
Gemini CLI installs one skill at a time:
gemini skills install https://github.com/cbrock84/headcount.git --path plugins/security/skills/detection-and-monitoring
The skill is identical in every tool. The Copilot, Cursor and Gemini steps follow each tool's published format and have not been run end to end here.
What the skill tells the assistant
The full text, as it installs. View the source on GitHub.
Incident response assumes someone noticed. Most organizations that respond well to incidents found out from a customer, a vendor, or an extortion note, and the gap between compromise and discovery is where nearly all of the damage accumulates.
Decide what to log by asking what you would need afterward
Work backwards from the questions an investigation asks: who authenticated, from where, and what did they then do. That points at a short list that matters far more than volume.
- Identity events — authentication success and failure, MFA changes, privilege grants, new API keys and tokens, consent grants to applications.
- Endpoint process activity — what ran, what spawned it, what it connected to.
- Administrative actions in the platforms that hold your data, especially permission and sharing changes.
- Network egress where you have it, and DNS, which is cheap and unusually informative.
Retention decides whether you can investigate at all. Intrusions are commonly discovered months after entry, so logs kept for thirty days answer none of the useful questions. Split it: a short hot window you can search fast, and a longer cold archive you can still reach.
Centralize, and make the copy hard to erase
Logs stored only on the system that produced them are logs the attacker controls. Ship them off the host as they are written, to a destination with different credentials from the systems it collects from — otherwise one compromised administrator account ends both the intrusion and the evidence of it.
Write detections for behavior, not for events
A single event is almost never an incident. What distinguishes an attacker is a sequence: authentication from a new location, followed by a mailbox rule creation, followed by a bulk download.
- Start from the techniques that actually apply to you. Coverage is a property of your own estate, not of a vendor's rule count.
- Detect the steps an attacker cannot skip — persistence, privilege escalation, credential access, and exfiltration — rather than the tools they might use, which change.
- High-signal detections available cheaply: inbox rules that forward or delete externally, new federation or identity-provider trust, disabled logging, impossible travel on administrative accounts, and mass file access by a single principal.
Every detection needs a documented response. A detection that fires with no defined next step becomes noise on its second occurrence.
Tune ruthlessly, because alert fatigue is the real failure mode
An alert that is wrong most of the time trains people to close it without reading. The team stops noticing, and the eventual real one closes the same way.
Measure the proportion of alerts that are actually actioned. Anything consistently below roughly half is a tuning problem, and the fix is narrowing or suppressing the rule rather than adding another analyst. A smaller number of trustworthy detections beats broad coverage nobody believes.
Decide who is watching, and when
Coverage hours are an explicit decision with a cost. Business-hours monitoring means an intrusion starting on Friday evening runs unobserved for two days, which is exactly why attacks are timed that way. If you cannot staff around the clock, say so, and choose a small number of detections that page a human at any hour rather than pretending the queue is monitored.
Outsourcing detection is legitimate and does not outsource the decision. The provider escalates; someone inside still has to be reachable and authorized to disconnect something.
Test that it would actually fire
Detection coverage is assumed far more often than it is verified. Run the behavior — a benign version of the technique — and confirm the alert arrives, reaches a person, and carries enough context to act on. Coverage claimed from a configuration page is not coverage.
Sources
references/sources.md in this skill lists the outside authorities that settle the questions here — what each one is authoritative for, and what you may do with it. Check them before answering on anything they cover, and cite what you used. Most are free to read and not free to reproduce; the use note on each is binding.
Never
- Retain logs for a window shorter than the time it typically takes to discover an intrusion.
- Store the only copy of a log on the system it describes.
- Ship a detection with no defined response.
- Claim coverage for a technique nobody has tested end to end.
Company context
Before answering, look for the company profile: the file .headcount/company.md in the working folder, or a document titled "Headcount company profile" in the conversation, the project's instructions or files, or saved memory. Where there is one, answer for that company and do not ask for anything it already states. Where it conflicts with what the person says now, the person is right, and say that the profile looks out of date. Where there is none, carry on: ask only for the facts this question turns on, and mention once that executive:company-onboarding records them so they are not asked again.
Other departments
A skill written as department:skill belongs to another department, and each department installs separately. If the one a question belongs to is not installed, name the department that owns it and how to add it, and do not improvise its work. references/departments.md in this skill lists each department this skill names, with the install step for Claude Code and for ChatGPT.
Files it ships with
Loaded only when the skill calls for them.
Sources it checks against
Where a question has an outside authority, the skill points the assistant at it instead of answering from memory.
- NIST SP 800-92: Guide to Computer Security Log Management NIST
What log management must provide — source prioritization, retention and rotation, log integrity, and the review responsibility that makes logs useful rather than merely voluminous. The final version is old and a revision is in draft, so check for a newer one.
- NIST SP 800-61: Incident Response Recommendations and Considerations NIST
What an incident response capability must contain and what evidence must be captured at each stage. The current revision is a substantial rewrite that drops the older four-phase framing, so do not mix guidance across revisions.
- PCI Data Security Standard PCI Security Standards Council
Whether a support agent may take a card number by phone, whether that call may be recorded, and what must happen to card data in ticket attachments and screen shares. Assessed by a qualified assessor, so genuinely dispositive.
- MITRE ATT&CK The MITRE Corporation
The shared vocabulary for adversary tactics and techniques — what to name a behavior so a detection, a threat model and an incident report refer to the same thing.
More in Security
- Access and identity
Designs and audits who can reach what — authentication, authorization models, privileged access, service credentials, and joiner-mover-leaver process.
- Chief Information Security Officer
Owns the security posture of the organization — architecture, program strategy, risk acceptance, incident command, and the authority to stop work that creates unacceptable exposure.
- Data protection and encryption
Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managin…
- Incident response
Runs a security incident from detection to closure — triage, containment, investigation, communication, and the review afterward.
- Security architecture review
Reviews a design or change for security before it ships — authentication and authorization, data handling, secrets, dependencies, and the secure-development practices around it.
- Threat modeling
Identifies what could go wrong in a system before it is built or changed — the assets worth attacking, the entry points, the trust boundaries, and the controls that actually addre…
- Vulnerability management
Runs the loop from discovering a weakness to confirming it is fixed — scanning, triage, prioritization by real exploitability, remediation tracking, and patch policy.