MCP server stores AWS credentials in world-readable file
Summary
MCP server saves boto session credentials (including short-lived session tokens) in a file under /tmp without restricting permissions. Other processes on the same host can read the file and hijack the session.
Severity & confidence
High
Credible abuse path with meaningful impact on confidentiality, integrity, or availability. Remediate on a short timeline; do not wait for the next sprint cycle.
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.
(?i)open\s*\(.{0,80}/tmp/[^"']*(?:aws|boto|session)
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_000045
{
meta:
source = "jiffy-intel"
severity = "high"
description = "Auto-generated from Jiffy Intel indicators"
strings:
$command_pattern_0 = "(?i)open\\s*\\(.{0,80}/tmp/[^\"']*(?:aws|boto|session)"
condition:
$command_pattern_0
}Auto-generated from the indicators above. Adapt syntax for your detection stack before deploying.
Affected tools
| Tool | Versions | Status |
|---|---|---|
| MCP servers (Python/boto) | * | 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.
- aws-ops-mcpMCP serverUnder review
- cloud-inspector-mcpMCP serverQuarantined
How to remediate
- 01Store credentials in-memory only or in a secured keyring.
- 02Reject MCP servers that write credentials to /tmp.
Timeline & sources
Timeline
- First observedMar 11, 20261 month ago
- Last updatedApr 24, 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