log-watch

log-watch is a cursor rule for Cursor from briiirussell/cybersecurity-skills. It costs 169 tokens per session (6,170 once invoked), scanned A, original, MIT.

A scheduled log-monitoring job for small teams that reads existing production logs, flags suspicious activity, and pages a person with an explanation and links to the raw events.

In plain words
What is it for?
Use it to review sources such as request logs, error reports, database authentication records, payment events, or cloud audit logs. It detects and alerts but does not block users or change systems.
Why use it?
It gives teams a way to notice possible attacks without a SIEM, a security information system that collects and analyzes logs, or dedicated security staff.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: positional $N argument.

Good fit Use it to review sources such as request logs, error reports, database authentication records, payment events, or cloud audit logs. It detects and alerts but does not block users or change systems.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/briiirussell/cybersecurity-skills/log-watch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/briiirussell/cybersecurity-skills

Made for: Cursor.

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 log-watch

README.md
[![agentmods](https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/log-watch/github.svg)](https://agentmods.dev/rules/briiirussell/cybersecurity-skills/log-watch)
Your own site
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/log-watch"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/log-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for log-watch

Your own site · 80×15
<a href="https://agentmods.dev/rules/briiirussell/cybersecurity-skills/log-watch"><img src="https://agentmods.dev/badge/rules/briiirussell/cybersecurity-skills/log-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00169 $0.06170
Opus 5.5 $0.00068 $0.02468
Sonnet 5.5 $0.00034 $0.01234
Haiku 4.5 $0.00017 $0.00617

Measured today against content hash e2a861743079, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

log-watch scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adapters/cursor/log-watch.mdc · 261 lines

How it starts

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

Log Watch — Scheduled Agent Log Review and Paging for Teams Without a SIEM

Most small SaaS teams already have the logs that would show an attack: Vercel or Heroku request logs, Sentry errors, a Postgres auth table, Stripe events, CloudTrail. Nobody reads them until after the incident. This skill wires a scheduled agent over those sources: cheap deterministic filters and a small model cut the volume, a stronger model looks only at what got flagged (with the previous run's state), and a human gets paged with a "why this fired" summary and raw event links.

Detection only. The watcher reads logs and sends messages. It never blocks an IP, disables a user, rotates a key, or changes config. Response is a human decision, made in incident-triage.

Write is pre-approved because the main output is a file: the log-watch.md plan, plus an optional scaffolded job. Don't write anywhere else without asking.

Cross-references: siem-detection for when the team outgrows this and adopts a real SIEM (the detections here port to Sigma); incident-triage for what happens after a page is real; soc-operations for regulated environments that need a SIEM/MDR and staffed triage instead of this; prompt-injection because the watcher is an LLM reading attacker-controlled text; secrets-audit for the API-key events this detects and for storing the watcher's own credentials; cloud-audit and iam-audit for the CloudTrail/IAM side; threat-hunting for one-off hunts that later graduate into a detection here.

When this fits, when it doesn't

Fits: 1–30 engineers, PaaS-hosted (Vercel, Heroku, Render, Fly, Supabase, Neon), no SIEM, no on-call security person, some logs already retained somewhere.

Doesn't fit, say so and point elsewhere:

  • Regulated environments (HIPAA, PCI DSS, SOC 2 with a monitoring control, FedRAMP) that need retained, tamper-evident logs and documented triage. A cron job doesn't satisfy that; use soc-operations and a SIEM or MDR. Log-watch can still run as an extra layer.
  • Already have a SIEM. Write the rules there with siem-detection.
  • Endpoint threats (malware on laptops). Logs from PaaS won't show it; that's EDR territory.

Read the full file on GitHub · 261 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. today First seen · 261 lines · 169 tokens per session scan A e2a861743079

Subscribe to this mod's changes

log-watch is a cursor rule published in the GitHub repository briiirussell/cybersecurity-skills (435 stars, last pushed today), licensed MIT. It adds 169 tokens to every session and 6,170 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.