agents.md uses zero-width whitespace to hide directives in innocuous text
Summary
agents.md file that looks like ordinary prose but uses zero-width space characters to embed hidden tokens. The raw file, read by the agent, carries directives the human reviewer cannot see.
Severity & confidence
Low
Hygiene-grade issue with limited direct impact. Fix opportunistically; monitor in case context changes (new exploit, new dependency, etc.).
Confirmed
Observed directly by Jiffy scanners or validated by multiple independent sources. Indicators are reliable enough to drive automated action.
Indicators
Observed patterns and artifacts associated with this entry. Each indicator can be copied into your detection stack or SIEM.
[\u200B-\u200D\uFEFF]{3,}
Detection rule
A YARA-style pseudo-rule auto-generated from the indicators above. Useful as a starting point — adapt the syntax for your target detection platform.
rule jiffy_ti_2026_000064
{
meta:
source = "jiffy-intel"
severity = "low"
description = "Auto-generated from Jiffy Intel indicators"
strings:
$content_pattern_0 = "[\\u200B-\\u200D\\uFEFF]{3,}"
condition:
$content_pattern_0
}Auto-generated from the indicators above. Adapt syntax for your detection stack before deploying.
Affected tools
| Tool | Versions | Status |
|---|---|---|
| Cursor | * | vulnerable |
| Claude Code | * | vulnerable |
| Windsurf | * | vulnerable |
Example artifacts
Sanitized examples of artifacts Jiffy has observed exhibiting this pattern. Publisher handles are redacted; version ranges and status reflect the most recent scan.
- agents.md (repo: onboarding-kit)IDE rulesUnder review
- .cursorrules (repo: team-conventions)IDE rulesQuarantined
How to remediate
- 01Strip zero-width characters from IDE rule files before feeding them to the agent.
- 02Jiffy Layer 1 flags ZWSP runs as suspicious.
Timeline & sources
Timeline
- First observedMar 13, 20261 month ago
- Last updatedApr 26, 2026today
- PublishedMar 25, 202623 days ago
Sources
References
Scan for patterns like this
Point Jiffy at your GitHub org, IDE config, or a single artifact. Get a scored report in under a minute.
Start a free scan