security-investigator: Instructions file for GitHub Copilot

.github/copilot-instructions.md

security-investigator copilot-instructions.md is an instructions file for GitHub Copilot from SCStelz/security-investigator. It costs 22,159 tokens per session, scanned A, original, MIT.

Instructions for a security investigation system that uses GitHub Copilot and KQL, a query language for searching security data, to investigate incidents.

In plain words
What is it for?
Running security investigations, loading the right investigation workflow, querying Azure data, and reporting findings with portal links instead of executable commands.
Why use it?
They enforce required preparation, evidence-based conclusions, environment checks, and safe remediation guidance before investigations run.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is SCStelz/security-investigator's own configuration. It tells GitHub Copilot how to work on security-investigator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything security-investigator configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to SCStelz/security-investigator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SCStelz/security-investigator/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/SCStelz/security-investigator

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-investigator copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/scstelz/security-investigator/copilot-instructions.svg)](https://agentmods.dev/instructions/scstelz/security-investigator/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/scstelz/security-investigator/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/scstelz/security-investigator/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 22,159 This file is loaded in full into every session.
When invoked 22,159 The same file โ€” it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file โ€” not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.22159 $0.22159
Opus 5 $0.11080 $0.11080
Sonnet 5 $0.04432 $0.04432
Haiku 4.5 $0.02216 $0.02216

Measured 8d ago against content hash 452880a1176c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

security-investigator copilot-instructions.md scanned grade A with 1 finding against 26 rules in 11 categories โ€” prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency โ€” measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Graph API write calls (`Invoke-MgGraphRequest -Method PATCH/POST/PUT/DELETE`, `curl -X POST`, etc.)
.github/copilot-instructions.md ยท 890 lines

How it starts

The opening of the file, as written. The whole thing โ€” 890 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Copilot - Security Investigation Integration

This workspace contains a security investigation automation system. GitHub Copilot can help you run investigations using natural language.


๐Ÿ“‘ TABLE OF CONTENTS

  1. Critical Workflow Rules - Start here!
  2. Environment Configuration - Read config.json for workspace/tenant details
  3. KQL Pre-Flight Checklist - Mandatory before EVERY query
  4. Evidence-Based Analysis - Anti-hallucination guardrails
  5. Remediation Output Policy - Portal links only, no executable commands
  6. Available Skills - Specialized investigation workflows
  7. Ad-Hoc Queries - Quick reference patterns
  8. Troubleshooting - Common issues and solutions

โš ๏ธ CRITICAL WORKFLOW RULES - READ FIRST โš ๏ธ

๐Ÿค– SKILL DETECTION: Before starting any investigation, check the Available Skills section below and load the appropriate SKILL.md file.


๐Ÿ”ง ENVIRONMENT CONFIGURATION

Environment-specific values (workspace IDs, tenant IDs, resource group names) are stored in config.json at the workspace root. This file is gitignored and never committed.

When you need environment values (especially for Azure MCP Server calls), read config.json instead of asking the user or hardcoding values.

config.json Schema (see config.json.template for field names):

Field Used By Purpose
sentinel_workspace_id Sentinel Data Lake MCP (query_lake) Log Analytics workspace GUID
tenant_id All Azure/Sentinel tools Entra ID tenant
subscription_id Azure MCP Server, Azure CLI Azure subscription
azure_mcp.resource_group Azure MCP workspace_log_query RG containing Log Analytics workspace
azure_mcp.workspace_name Azure MCP workspace_log_query Log Analytics workspace display name
azure_mcp.tenant Azure MCP Server (all calls) Required to avoid cross-tenant auth errors
azure_mcp.subscription Azure MCP Server (all calls) Target subscription

Read the full file on GitHub ยท 890 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen ยท 890 lines ยท 22,159 tokens per session scan A 452880a1176c

Subscribe to this mod's changes

security-investigator copilot-instructions.md is an instructions file published in the GitHub repository SCStelz/security-investigator (244 stars, last pushed 3d ago), licensed MIT. It adds 22,159 tokens to every session, about $0.1108 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex ยท 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode ยท 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js ยท 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain ยท 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode ยท 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart โ€” add a new integration in 5 steps, integration architecture and integrationmanifest โ€” file tracking.

github/spec-kit ยท 7,104 tokens