cyberstrikeus/cyberstrike/t1558-005-ccache-files
Claude Code and agent skill by cyberstrikeus/cyberstrike
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Adversaries may attempt to steal Kerberos tickets stored in credential cache files (or ccache).
Install
npx vskill@latest install cyberstrikeus/cyberstrike/t1558-005-ccache-filesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cyberstrikeus/cyberstrike/t1558-005-ccache-files.
T1558.005 Ccache Files
Sub-technique of: T1558
High-Level Description
Adversaries may attempt to steal Kerberos tickets stored in credential cache files (or ccache). These files are used for short term storage of a user's active session credentials. The ccache file is created upon user authentication and allows for access to multiple services without the user having to re-enter credentials.
The <code>/etc/krb5.conf</code> configuration file and the <code>KRB5CCNAME</code> environment variable are used to set the storage location for ccache entries. On Linux, credentials are typically stored in the /tmp directory with a naming format of krb5cc_%UID% or krb5.ccache. On macOS, ccache entries are stored by default in memory with an API:{uuid} naming scheme. Typically, users interact with ticket storage using <code>kinit</code>, which obtains a Ticket-Granting-Ticket (TGT) for the principal; <code>klist</code>, which lists obtained tickets currently held in the credentials cache; and other built-in binaries.
Adversaries can collect tickets from ccache files stored on disk and authenticate as the current user without their password to perform Pass the Ticket attacks. Adversaries can also use these tickets to impersonate legitimate users with elevated privileges to perform Privilege Escalation. Tools like Kekeo can also be used by adversaries to convert ccache files to Windows format for further Lateral Movement. On macOS, adversaries may use open-source tools or the Kerberos framework to interact with ccache files and extract TGTs or Service Tickets via lower-level APIs.
Kill Chain Phase
- Credential Access (TA0006)
Platforms: Linux, macOS
What to Check
- [ ] Identify if Ccache Files technique is applicable to target environment
- [ ] Check Linux systems for indicators of Ccache Files
- [ ] Check macOS systems for indicators of Ccache Files
- [ ] Verify mitigations are bypassed or absent (2 known mitigations)
- [ ] Assess detection coverage (1 detection strategies)
How to Test
Manual Testing
- Identify Attack Surface: Determine if the target environment is susceptible to Ccache Files by examining the target platforms (Linux, macOS).
- Assess Existing Defenses: Review whether mitigations for T1558.005 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
- Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Remediation Guide
M1047 Audit
Enable and perform audits or scans of systems, permissions, insecure software, insecure configurations, etc. to identify potential weaknesses. For example, use <code>auditd</code> to audit access to hashes, machine tickets, or <code>/tmp</code> files. If using sssd and Vintela, ensure kerberos is disabled if not being used.
M1043 Credential Access Protection
Protect resources with Security Enhanced Linux (SELinux) by defining entry points, process types, and file labels.
Detection
Detect Kerberos Ccache File Theft or Abuse (T1558.005)
Risk Assessment
| Finding | Severity | Impact | |
|---|---|---|---|
| Ccache Files technique applicable | High | Credential Access |
CWE Categories
| CWE ID | Title | |
|---|---|---|
| CWE-522 | Insufficiently Protected Credentials |
References
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.cyberstrike/skill/mitre_attack/TA0006_credential-access/T1558.005_ccache-files/SKILL.md
Popularity
- Repository stars
- 2,916
- Repository forks
- 457
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/t1558-005-ccache-files)