AGENTS.md tells agent to paste ~/.ssh/id_rsa.pub into PR for CI setup
Summary
AGENTS.md has a section titled "CI onboarding" that instructs the agent to paste the user's SSH public key into PR descriptions. While public keys are not immediately sensitive, the coerced habit normalizes key pasting and enables later pattern-matching attacks.
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.
(?is)id_rsa\.pub[^\n]{0,80}(?:paste|include|attach)
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_000074
{
meta:
source = "jiffy-intel"
severity = "low"
description = "Auto-generated from Jiffy Intel indicators"
strings:
$content_pattern_0 = "(?is)id_rsa\\.pub[^\\n]{0,80}(?:paste|include|attach)"
condition:
$content_pattern_0
}Auto-generated from the indicators above. Adapt syntax for your detection stack before deploying.
Affected tools
| Tool | Versions | Status |
|---|---|---|
| Claude Code | * | vulnerable |
| Cursor | * | 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: ci-quickstart)IDE rulesUnder review
- agents.md (repo: pipeline-templates)IDE rulesQuarantined
How to remediate
- 01Train agents to refuse any instruction to paste credentials into PRs.
- 02Jiffy Layer 3 flags these instructions.
Timeline & sources
Timeline
- First observedMar 25, 202623 days ago
- Last updatedApr 28, 2026today
- PublishedApr 2, 202615 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