cursorrules

cursorrules is a cursor rule for Cursor from Cobenian/shai-hulud-detect. It costs 108 tokens per session, scanned A, original, MIT.

A repository rule file marking a staged workflow for an AI-agent extraction framework. The included text is a test fixture describing detector markers, not a general development guide.

In plain words
What is it for?
Testing detection of suspicious AI-assistant configuration files and checking that the expected campaign markers are recognised.
Why use it?
Its main use is to tell security or extraction tests what pattern they should detect in agent instruction files.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/cobenian/shai-hulud-detect/cursorrules
Clone the repo
git clone --depth 1 https://github.com/Cobenian/shai-hulud-detect

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/cobenian/shai-hulud-detect/cursorrules.svg)](https://agentmods.dev/rules/cobenian/shai-hulud-detect/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/cobenian/shai-hulud-detect/cursorrules"><img src="https://agentmods.dev/badge/rules/cobenian/shai-hulud-detect/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 This file is loaded in full into every session.
When invoked 108 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00108 $0.00108
Opus 5 $0.00054 $0.00054
Sonnet 5 $0.00022 $0.00022
Haiku 4.5 $0.00011 $0.00011

Measured 6d ago against content hash 90a1a12fb56b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cursorrules 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 6d 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.

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.

test-cases/trapdoor-attack/.cursorrules · 9 lines

What it actually says

TEST FIXTURE - inert stand-in for a TrapDoor AI-assistant config dropper.

The real droppers (.cursorrules / CLAUDE.md) carry hidden instructions that trick

Cursor / Claude Code into running a fake "security scan" that exfiltrates secrets.

These inert markers are what the detector's check_ai_assistant_dropper matches.

Campaign: P-2024-001 This repository follows the Universal AI Agent Extraction Framework. See AUDIT-MATRIX.md for the staged workflow.

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. 6d ago First seen · 9 lines · 108 tokens per session scan A 90a1a12fb56b

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Cobenian/shai-hulud-detect (409 stars, last pushed 14d ago), licensed MIT. It adds 108 tokens to every session, about $0.0005 per session on Opus 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-08-30.