Skip to content
Skillv1.0.0

T1003.005_cached-domain-credentials

Adversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable.

by CyberStrikeus(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from CyberStrikeus/CyberStrike (.cyberstrike/skill/mitre_attack/TA0006_credential-access/T1003.005_cached-domain-credentials/SKILL.md). Install upstream with npx skills add CyberStrikeus/CyberStrike --skill T1003.005_cached-domain-credentials. Copyright stays with the author.

T1003.005 Cached Domain Credentials

Sub-technique of: T1003

High-Level Description

Adversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable.

On Windows Vista and newer, the hash format is DCC2 (Domain Cached Credentials version 2) hash, also known as MS-Cache v2 hash. The number of default cached credentials varies and can be altered per system. This hash does not allow pass-the-hash style attacks, and instead requires Password Cracking to recover the plaintext password.

On Linux systems, Active Directory credentials can be accessed through caches maintained by software like System Security Services Daemon (SSSD) or Quest Authentication Services (formerly VAS). Cached credential hashes are typically located at /var/lib/sss/db/cache.[domain].ldb for SSSD or /var/opt/quest/vas/authcache/vas_auth.vdb for Quest. Adversaries can use utilities, such as tdbdump, on these database files to dump the cached hashes and use Password Cracking to obtain the plaintext password.

With SYSTEM or sudo access, the tools/utilities such as Mimikatz, Reg, and secretsdump.py for Windows or Linikatz for Linux can be used to extract the cached credentials.

Note: Cached credentials for Windows Vista are derived using PBKDF2.

Kill Chain Phase

  • Credential Access (TA0006)

Platforms: Windows, Linux

What to Check

  • Identify if Cached Domain Credentials technique is applicable to target environment
  • Check Windows systems for indicators of Cached Domain Credentials
  • Check Linux systems for indicators of Cached Domain Credentials
  • Verify mitigations are bypassed or absent (5 known mitigations)
  • Assess detection coverage (1 detection strategies)

How to Test

Atomic Red Team Tests

The following tests are from Atomic Red Team and provide actionable ways to test this technique:

Atomic Test 1: Cached Credential Dump via Cmdkey

List credentials currently stored on the host via the built-in Windows utility cmdkey.exe Credentials listed with Cmdkey only pertain to the current user Passwords will not be displayed once they are stored https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey https://www.peew.pw/blog/2017/11/26/exploring-cmdkey-an-edge-case-for-privilege-escalation

Supported Platforms: windows

cmdkey /list

Manual Testing

If Atomic Red Team tests are not applicable, manually verify the technique by:

  1. Identify Attack Surface: Determine if the target environment is susceptible to Cached Domain Credentials by examining the target platforms (Windows, Linux).

  2. Assess Existing Defenses: Review whether mitigations for T1003.005 are in place. If defenses are absent or misconfigured, this technique may be exploitable.

  3. Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.

Remediation Guide

M1015 Active Directory Configuration

Consider adding users to the "Protected Users" Active Directory security group. This can help limit the caching of users' plaintext credentials.

M1017 User Training

Limit credential overlap across accounts and systems by training users and administrators not to use the same password for multiple accounts.

M1027 Password Policies

Ensure that local administrator accounts have complex, unique passwords across all systems on the network.

M1028 Operating System Configuration

Consider limiting the number of cached credentials (HKLM\SOFTWARE\Microsoft\Windows NT\Current Version\Winlogon\cachedlogonscountvalue)

M1026 Privileged Account Management

Do not put user or admin domain accounts in the local administrator groups across systems unless they are tightly controlled, as this is often equivalent to having a local administrator account with the same password on all systems. Follow best practices for design and administration of an enterprise network to limit privileged account use across administrative tiers.

Detection

Detection of Cached Domain Credential Dumping via Local Hash Cache Access

Risk Assessment

Finding Severity Impact
Cached Domain Credentials technique applicable High Credential Access

CWE Categories

CWE ID Title
CWE-522 Insufficiently Protected Credentials

References

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/cyberstrikeus-cyberstrike-t1003-005-cached-domain-credentials/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

cyberstrikeus-cyberstrike-t1003-005-cached-domain-credentials.ocm.jsonjson
{
  "ocm": "1",
  "id": "cyberstrikeus-cyberstrike-t1003-005-cached-domain-credentials",
  "kind": "skill",
  "name": "T1003.005_cached-domain-credentials",
  "description": "Adversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable.",
  "publisher": "CyberStrikeus",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "mitre-attack",
      "enterprise",
      "t1003-005",
      "credential-access",
      "windows",
      "linux",
      "sub-technique",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Adversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/CyberStrikeus/CyberStrike",
      "path": ".cyberstrike/skill/mitre_attack/TA0006_credential-access/T1003.005_cached-domain-credentials/SKILL.md",
      "ref": "df28ccd3dc6d6c02391169121ee2dcdf4a6a132b",
      "url": "https://github.com/CyberStrikeus/CyberStrike/blob/df28ccd3dc6d6c02391169121ee2dcdf4a6a132b/.cyberstrike/skill/mitre_attack/TA0006_credential-access/T1003.005_cached-domain-credentials/SKILL.md",
      "key": "CyberStrikeus/CyberStrike/.cyberstrike/skill/mitre_attack/TA0006_credential-access/T1003.005_cached-domain-credentials/SKILL.md"
    }
  },
  "instructions": "# T1003.005 Cached Domain Credentials\n\n> **Sub-technique of:** T1003\n\n## High-Level Description\n\nAdversaries may attempt to access cached domain credentials used to allow authentication to occur in the event a domain controller is unavailable.\n\nOn Windows Vista and newer, the hash format is DCC2 (Domain Cached Credentials version 2) hash, also known as MS-Cache v2 hash. The number of default cached credentials varies and can be altered per system. This hash does not allow pass-the-hash style attacks, and instead requires Password Cracking to recover the plaintext password.\n\nOn Linux systems, A",
  "cost": {
    "context_tokens": 1365
  }
}

Fetch it by URL: GET /api/v1/registry/cyberstrikeus-cyberstrike-t1003-005-cached-domain-credentials/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.