[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D8MCYAW605QYQCPTFFH9QQ":3,"skill-same:01M7D8MCYAW605QYQCPTFFH9QQ":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":74,"commitSha":75,"skillDirectory":76,"forksCount":77,"repositoryHtmlUrl":78,"repositoryHomepageUrl":6,"ownerHtmlUrl":79,"ownerBlogUrl":80,"ownerDescription":81,"updatedAt":82,"install":83,"resources":96},"01M7D8MCYAW605QYQCPTFFH9QQ","extracting-credentials-from-memory-dump",null,"Extracts cached credentials, password hashes, Kerberos tickets, and authentication tokens from Windows memory dumps using Volatility 3, Mimikatz, and pypykatz. Use when performing memory forensics or incident response on an LSASS or full memory dump and you need to recover credentials or Kerberos material for investigation.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: extracting-credentials-from-memory-dump\ndescription: Extracts cached credentials, password hashes, Kerberos tickets, and\n  authentication tokens from Windows memory dumps using Volatility 3, Mimikatz,\n  and pypykatz. Use when performing memory forensics or incident response on an\n  LSASS or full memory dump and you need to recover credentials or Kerberos material\n  for investigation.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- credential-extraction\n- memory-forensics\n- volatility\n- mimikatz\n- password-hashes\n- incident-response\nmitre_attack:\n- T1005\n- T1074\n- T1119\n- T1070\n- T1003\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - positioning\n  - initial-access\n  techniques:\n  - id: T1555\n    name: Credentials from Password Stores\n    tactic: reconnaissance\n    source: attack\n  - id: T1555.003\n    name: 'Credentials from Password Stores: Credentials from Web Browsers'\n    tactic: reconnaissance\n    source: attack\n  - id: T1539\n    name: Steal Web Session Cookie\n    tactic: positioning\n    source: attack\n  - id: F1006\n    name: Account Takeover\n    tactic: initial-access\n    source: f3\n  - id: F1006.002\n    name: 'Account Takeover: Exposed Login Credential'\n    tactic: initial-access\n    source: f3\n  - id: F1006.001\n    name: 'Account Takeover: Exposed API Key'\n    tactic: initial-access\n    source: f3\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\n---\n\n# Extracting Credentials from Memory Dump\n\n## When to Use\n- During incident response to determine what credentials an attacker had access to\n- When assessing the scope of credential compromise after a breach\n- For identifying accounts that need immediate password resets\n- When investigating lateral movement and pass-the-hash\u002Fpass-the-ticket attacks\n- For recovering encryption keys or authentication tokens from process memory\n\n## Prerequisites\n- Memory dump in raw, ELF, or crash dump format\n- Volatility 3 with Windows symbol tables\n- Mimikatz (for offline analysis of extracted LSASS dumps)\n- pypykatz (Python implementation of Mimikatz for Linux-based analysis)\n- Understanding of Windows authentication (NTLM, Kerberos, DPAPI)\n- Appropriate legal authorization for credential extraction\n\n## Workflow\n\n### Step 1: Prepare Tools and Verify Memory Dump\n\n```bash\n# Install analysis tools\npip install volatility3 pypykatz\n\n# Verify memory dump integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw\n\n# Identify the OS version\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.info\n\n# Verify LSASS process exists in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.pslist | grep -i lsass\n\n# Output:\n# PID    PPID   ImageFileName   Offset(V)        Threads  Handles  SessionId\n# 684    564    lsass.exe       0xffffe00123456   35       1234     0\n```\n\n### Step 2: Extract Credential Hashes with Volatility\n\n```bash\n# Dump SAM database hashes from memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.hashdump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhashdump.txt\n\n# Output format:\n# User           RID    LM Hash                          NTLM Hash\n# Administrator  500    aad3b435b51404eeaad3b435b51404ee  fc525c9683e8fe067095ba2ddc971889\n# Guest          501    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# DefaultAccount 503    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# svcbackup      1001   aad3b435b51404eeaad3b435b51404ee  2b576acbe6bcfda7294d6bd18041b8fe\n\n# Extract LSA secrets\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.lsadump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsadump.txt\n\n# Extract cached domain credentials\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.cachedump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcachedump.txt\n```\n\n### Step 3: Dump LSASS Process Memory for Detailed Analysis\n\n```bash\n# Dump LSASS process memory (PID from Step 1)\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.memmap --pid 684 --dump \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002F\n\n# Alternative: Dump all files associated with LSASS\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles --pid 684 \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_files\u002F\n\n# Use procdump plugin for cleaner process dump\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles \\\n   --pid 684 -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002F\n\n# Rename the dump file for pypykatz\u002Fmimikatz\nmv \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002Fpid.684.dmp \\\n   \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp\n```\n\n### Step 4: Extract Credentials with pypykatz\n\n```bash\n# Run pypykatz against the full memory dump\npypykatz lsa minidump \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_results.txt 2>&1\n\n# Run pypykatz against the raw memory dump directly\npypykatz rekall \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_full.txt 2>&1\n\n# Parse pypykatz output for structured analysis\npython3 \u003C\u003C 'PYEOF'\nimport json\n\n# pypykatz can also output JSON\nimport subprocess\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j'],\n    capture_output=True, text=True\n)\n\nif result.stdout:\n    data = json.loads(result.stdout)\n\n    print(\"=== EXTRACTED CREDENTIALS ===\\n\")\n\n    for session_key, session in data.get('logon_sessions', {}).items():\n        username = session.get('username', 'Unknown')\n        domain = session.get('domainname', '')\n        logon_server = session.get('logon_server', '')\n        logon_time = session.get('logon_time', '')\n        sid = session.get('sid', '')\n\n        if username and username != '(null)':\n            print(f\"Session: {domain}\\\\{username}\")\n            print(f\"  SID: {sid}\")\n            print(f\"  Logon Server: {logon_server}\")\n            print(f\"  Logon Time: {logon_time}\")\n\n            # NTLM hashes\n            msv = session.get('msv_creds', [])\n            for cred in msv:\n                nt = cred.get('NThash', '')\n                lm = cred.get('LMHash', '')\n                if nt:\n                    print(f\"  NTLM Hash: {nt}\")\n                if lm:\n                    print(f\"  LM Hash: {lm}\")\n\n            # Kerberos tickets\n            kerb = session.get('kerberos_creds', [])\n            for cred in kerb:\n                password = cred.get('password', '')\n                if password:\n                    print(f\"  Kerberos Password: {password}\")\n                tickets = cred.get('tickets', [])\n                for ticket in tickets:\n                    print(f\"  Kerberos Ticket: {ticket.get('server', '')} (type: {ticket.get('enc_type', '')})\")\n\n            # WDigest (plaintext on older systems)\n            wdigest = session.get('wdigest_creds', [])\n            for cred in wdigest:\n                pwd = cred.get('password', '')\n                if pwd:\n                    print(f\"  WDigest Password: {pwd}\")\n\n            # DPAPI master keys\n            dpapi = session.get('dpapi_creds', [])\n            for cred in dpapi:\n                mk = cred.get('masterkey', '')\n                if mk:\n                    print(f\"  DPAPI Master Key: {mk[:40]}...\")\n\n            print()\nPYEOF\n```\n\n### Step 5: Extract Kerberos Tickets and Tokens\n\n```bash\n# Extract Kerberos tickets from memory\npython3 \u003C\u003C 'PYEOF'\nimport subprocess, json\n\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j', '-k', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'],\n    capture_output=True, text=True\n)\n\n# pypykatz exports .kirbi files to the specified directory\nimport os\nkirbi_dir = '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'\nif os.path.exists(kirbi_dir):\n    for f in os.listdir(kirbi_dir):\n        if f.endswith('.kirbi'):\n            filepath = os.path.join(kirbi_dir, f)\n            size = os.path.getsize(filepath)\n            print(f\"  Kerberos ticket: {f} ({size} bytes)\")\nPYEOF\n\n# Search process memory for authentication tokens and API keys\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings --pid 684 | \\\n   grep -iE '(bearer |authorization:|api[_-]key|token=|password=|secret=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fauth_strings.txt\n\n# Search for cloud credentials in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(AKIA[A-Z0-9]{16}|ASIA[A-Z0-9]{16}|aws_secret_access_key)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Faws_credentials.txt\n\n# Search for browser session tokens\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(session_id=|PHPSESSID=|JSESSIONID=|_ga=|sid=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsession_tokens.txt\n```\n\n### Step 6: Compile Credential Findings Report\n\n```bash\n# Generate credential compromise assessment\npython3 \u003C\u003C 'PYEOF'\nprint(\"\"\"\nCREDENTIAL EXTRACTION REPORT\n==============================\nCase: 2024-001\nSource: memory.raw (16 GB Windows 10 memory dump)\nAnalysis Date: 2024-01-20\n\nCOMPROMISED ACCOUNTS:\n=====================\n\n1. Local Accounts (SAM):\n   - Administrator (RID 500): NTLM hash extracted\n   - svcbackup (RID 1001): NTLM hash extracted\n   - SQLService (RID 1002): NTLM hash extracted\n\n2. Domain Accounts (LSASS):\n   - CORP\\\\admin.user: NTLM hash + Kerberos TGT\n   - CORP\\\\svc.backup: NTLM hash + plaintext password (WDigest)\n   - CORP\\\\domain.admin: Kerberos TGS tickets for 3 services\n\n3. Cached Domain Credentials:\n   - CORP\\\\helpdesk.user: DCC2 hash\n   - CORP\\\\it.manager: DCC2 hash\n\n4. Cloud Credentials:\n   - AWS Access Key: AKIA... found in process memory (PID 3456)\n   - Azure AD token found in browser process memory\n\nIMMEDIATE ACTIONS REQUIRED:\n- Reset passwords for all listed accounts\n- Revoke and rotate AWS access keys\n- Invalidate all active Kerberos tickets (krbtgt reset)\n- Review DPAPI-protected data for additional exposure\n\"\"\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| LSASS (Local Security Authority) | Windows process managing authentication, storing credentials in memory |\n| NTLM hash | NT LAN Manager hash of user password used for authentication |\n| Kerberos TGT | Ticket Granting Ticket allowing request of service tickets |\n| WDigest | Legacy authentication protocol storing plaintext passwords in memory (pre-Win8.1) |\n| DPAPI | Data Protection API using master keys derived from user credentials |\n| DCC2 (Domain Cached Credentials) | Cached domain password hashes for offline logon |\n| LSA Secrets | Encrypted service account passwords and other secrets stored by LSA |\n| Pass-the-Hash | Attack technique using extracted NTLM hashes without knowing the plaintext password |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Volatility 3 | Memory forensics framework with hashdump, lsadump, cachedump plugins |\n| pypykatz | Python implementation of Mimikatz for cross-platform LSASS analysis |\n| Mimikatz | Windows credential extraction tool (used offline against dumps) |\n| secretsdump.py | Impacket tool for extracting secrets from SAM\u002FSYSTEM\u002FSECURITY |\n| hashcat | Password hash cracking for recovered NTLM and DCC2 hashes |\n| John the Ripper | Alternative password cracking tool |\n| Rubeus | Kerberos ticket manipulation and extraction tool |\n| Impacket | Python toolkit for working with Windows network protocols and credentials |\n\n## Common Scenarios\n\n**Scenario 1: Post-Breach Credential Assessment**\nExtract all cached credentials from LSASS memory to determine which accounts were exposed, prioritize password resets based on privilege level, check for golden ticket material (krbtgt hash), assess if cloud credentials were accessible.\n\n**Scenario 2: Lateral Movement Investigation**\nExtract NTLM hashes and Kerberos tickets to understand how the attacker moved between systems, identify pass-the-hash\u002Fpass-the-ticket artifacts, correlate extracted credentials with network logon events in event logs.\n\n**Scenario 3: Ransomware Operator Credential Theft**\nAnalyze pre-encryption memory dump for Mimikatz execution evidence, extract all available credential types, determine if domain admin credentials were obtained, assess if krbtgt was compromised (golden ticket), plan credential rotation strategy.\n\n**Scenario 4: Cloud Credential Theft from Endpoint**\nSearch endpoint memory for AWS access keys, Azure tokens, and GCP service account keys stored by CLI tools and browsers, identify exposed cloud permissions, immediately rotate discovered credentials, audit cloud audit logs for unauthorized access.\n\n## Output Format\n\n```\nCredential Extraction Summary:\n  Source: memory.raw (16 GB, Windows 10 Build 19041)\n  LSASS PID: 684\n\n  Credentials Recovered:\n    Local NTLM Hashes:        4 accounts\n    Domain NTLM Hashes:       3 accounts\n    Kerberos TGTs:             2 tickets\n    Kerberos TGS:              5 service tickets\n    Plaintext Passwords:       1 (WDigest - svc.backup)\n    Cached Domain Creds:       2 DCC2 hashes\n    LSA Secrets:               3 service account passwords\n    DPAPI Master Keys:         4 keys recovered\n    Cloud Credentials:         1 AWS access key, 1 Azure token\n\n  Highest Privilege Compromised: Domain Admin (CORP\\domain.admin)\n\n  Recommended Actions:\n    - Immediate: Reset all extracted account passwords\n    - Immediate: Rotate AWS access key AKIA...\n    - Urgent: Double krbtgt password reset (golden ticket mitigation)\n    - High: Revoke all Kerberos tickets via krbtgt rotation\n    - Medium: Audit DPAPI-protected data exposure\n```\n","# Extracting Credentials from Memory Dump\n\n## When to Use\n- During incident response to determine what credentials an attacker had access to\n- When assessing the scope of credential compromise after a breach\n- For identifying accounts that need immediate password resets\n- When investigating lateral movement and pass-the-hash\u002Fpass-the-ticket attacks\n- For recovering encryption keys or authentication tokens from process memory\n\n## Prerequisites\n- Memory dump in raw, ELF, or crash dump format\n- Volatility 3 with Windows symbol tables\n- Mimikatz (for offline analysis of extracted LSASS dumps)\n- pypykatz (Python implementation of Mimikatz for Linux-based analysis)\n- Understanding of Windows authentication (NTLM, Kerberos, DPAPI)\n- Appropriate legal authorization for credential extraction\n\n## Workflow\n\n### Step 1: Prepare Tools and Verify Memory Dump\n\n```bash\n# Install analysis tools\npip install volatility3 pypykatz\n\n# Verify memory dump integrity\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw\n\n# Identify the OS version\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.info\n\n# Verify LSASS process exists in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.pslist | grep -i lsass\n\n# Output:\n# PID    PPID   ImageFileName   Offset(V)        Threads  Handles  SessionId\n# 684    564    lsass.exe       0xffffe00123456   35       1234     0\n```\n\n### Step 2: Extract Credential Hashes with Volatility\n\n```bash\n# Dump SAM database hashes from memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.hashdump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fhashdump.txt\n\n# Output format:\n# User           RID    LM Hash                          NTLM Hash\n# Administrator  500    aad3b435b51404eeaad3b435b51404ee  fc525c9683e8fe067095ba2ddc971889\n# Guest          501    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# DefaultAccount 503    aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0\n# svcbackup      1001   aad3b435b51404eeaad3b435b51404ee  2b576acbe6bcfda7294d6bd18041b8fe\n\n# Extract LSA secrets\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.lsadump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsadump.txt\n\n# Extract cached domain credentials\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.cachedump \\\n   | tee \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fcachedump.txt\n```\n\n### Step 3: Dump LSASS Process Memory for Detailed Analysis\n\n```bash\n# Dump LSASS process memory (PID from Step 1)\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.memmap --pid 684 --dump \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002F\n\n# Alternative: Dump all files associated with LSASS\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles --pid 684 \\\n   -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_files\u002F\n\n# Use procdump plugin for cleaner process dump\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.dumpfiles \\\n   --pid 684 -o \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002F\n\n# Rename the dump file for pypykatz\u002Fmimikatz\nmv \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass_dump\u002Fpid.684.dmp \\\n   \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp\n```\n\n### Step 4: Extract Credentials with pypykatz\n\n```bash\n# Run pypykatz against the full memory dump\npypykatz lsa minidump \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_results.txt 2>&1\n\n# Run pypykatz against the raw memory dump directly\npypykatz rekall \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fpypykatz_full.txt 2>&1\n\n# Parse pypykatz output for structured analysis\npython3 \u003C\u003C 'PYEOF'\nimport json\n\n# pypykatz can also output JSON\nimport subprocess\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j'],\n    capture_output=True, text=True\n)\n\nif result.stdout:\n    data = json.loads(result.stdout)\n\n    print(\"=== EXTRACTED CREDENTIALS ===\\n\")\n\n    for session_key, session in data.get('logon_sessions', {}).items():\n        username = session.get('username', 'Unknown')\n        domain = session.get('domainname', '')\n        logon_server = session.get('logon_server', '')\n        logon_time = session.get('logon_time', '')\n        sid = session.get('sid', '')\n\n        if username and username != '(null)':\n            print(f\"Session: {domain}\\\\{username}\")\n            print(f\"  SID: {sid}\")\n            print(f\"  Logon Server: {logon_server}\")\n            print(f\"  Logon Time: {logon_time}\")\n\n            # NTLM hashes\n            msv = session.get('msv_creds', [])\n            for cred in msv:\n                nt = cred.get('NThash', '')\n                lm = cred.get('LMHash', '')\n                if nt:\n                    print(f\"  NTLM Hash: {nt}\")\n                if lm:\n                    print(f\"  LM Hash: {lm}\")\n\n            # Kerberos tickets\n            kerb = session.get('kerberos_creds', [])\n            for cred in kerb:\n                password = cred.get('password', '')\n                if password:\n                    print(f\"  Kerberos Password: {password}\")\n                tickets = cred.get('tickets', [])\n                for ticket in tickets:\n                    print(f\"  Kerberos Ticket: {ticket.get('server', '')} (type: {ticket.get('enc_type', '')})\")\n\n            # WDigest (plaintext on older systems)\n            wdigest = session.get('wdigest_creds', [])\n            for cred in wdigest:\n                pwd = cred.get('password', '')\n                if pwd:\n                    print(f\"  WDigest Password: {pwd}\")\n\n            # DPAPI master keys\n            dpapi = session.get('dpapi_creds', [])\n            for cred in dpapi:\n                mk = cred.get('masterkey', '')\n                if mk:\n                    print(f\"  DPAPI Master Key: {mk[:40]}...\")\n\n            print()\nPYEOF\n```\n\n### Step 5: Extract Kerberos Tickets and Tokens\n\n```bash\n# Extract Kerberos tickets from memory\npython3 \u003C\u003C 'PYEOF'\nimport subprocess, json\n\nresult = subprocess.run(\n    ['pypykatz', 'lsa', 'minidump', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flsass.dmp', '-j', '-k', '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'],\n    capture_output=True, text=True\n)\n\n# pypykatz exports .kirbi files to the specified directory\nimport os\nkirbi_dir = '\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fkerberos\u002F'\nif os.path.exists(kirbi_dir):\n    for f in os.listdir(kirbi_dir):\n        if f.endswith('.kirbi'):\n            filepath = os.path.join(kirbi_dir, f)\n            size = os.path.getsize(filepath)\n            print(f\"  Kerberos ticket: {f} ({size} bytes)\")\nPYEOF\n\n# Search process memory for authentication tokens and API keys\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings --pid 684 | \\\n   grep -iE '(bearer |authorization:|api[_-]key|token=|password=|secret=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fauth_strings.txt\n\n# Search for cloud credentials in memory\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(AKIA[A-Z0-9]{16}|ASIA[A-Z0-9]{16}|aws_secret_access_key)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Faws_credentials.txt\n\n# Search for browser session tokens\nvol -f \u002Fcases\u002Fcase-2024-001\u002Fmemory\u002Fmemory.raw windows.strings | \\\n   grep -iE '(session_id=|PHPSESSID=|JSESSIONID=|_ga=|sid=)' \\\n   > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsession_tokens.txt\n```\n\n### Step 6: Compile Credential Findings Report\n\n```bash\n# Generate credential compromise assessment\npython3 \u003C\u003C 'PYEOF'\nprint(\"\"\"\nCREDENTIAL EXTRACTION REPORT\n==============================\nCase: 2024-001\nSource: memory.raw (16 GB Windows 10 memory dump)\nAnalysis Date: 2024-01-20\n\nCOMPROMISED ACCOUNTS:\n=====================\n\n1. Local Accounts (SAM):\n   - Administrator (RID 500): NTLM hash extracted\n   - svcbackup (RID 1001): NTLM hash extracted\n   - SQLService (RID 1002): NTLM hash extracted\n\n2. Domain Accounts (LSASS):\n   - CORP\\\\admin.user: NTLM hash + Kerberos TGT\n   - CORP\\\\svc.backup: NTLM hash + plaintext password (WDigest)\n   - CORP\\\\domain.admin: Kerberos TGS tickets for 3 services\n\n3. Cached Domain Credentials:\n   - CORP\\\\helpdesk.user: DCC2 hash\n   - CORP\\\\it.manager: DCC2 hash\n\n4. Cloud Credentials:\n   - AWS Access Key: AKIA... found in process memory (PID 3456)\n   - Azure AD token found in browser process memory\n\nIMMEDIATE ACTIONS REQUIRED:\n- Reset passwords for all listed accounts\n- Revoke and rotate AWS access keys\n- Invalidate all active Kerberos tickets (krbtgt reset)\n- Review DPAPI-protected data for additional exposure\n\"\"\")\nPYEOF\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| LSASS (Local Security Authority) | Windows process managing authentication, storing credentials in memory |\n| NTLM hash | NT LAN Manager hash of user password used for authentication |\n| Kerberos TGT | Ticket Granting Ticket allowing request of service tickets |\n| WDigest | Legacy authentication protocol storing plaintext passwords in memory (pre-Win8.1) |\n| DPAPI | Data Protection API using master keys derived from user credentials |\n| DCC2 (Domain Cached Credentials) | Cached domain password hashes for offline logon |\n| LSA Secrets | Encrypted service account passwords and other secrets stored by LSA |\n| Pass-the-Hash | Attack technique using extracted NTLM hashes without knowing the plaintext password |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Volatility 3 | Memory forensics framework with hashdump, lsadump, cachedump plugins |\n| pypykatz | Python implementation of Mimikatz for cross-platform LSASS analysis |\n| Mimikatz | Windows credential extraction tool (used offline against dumps) |\n| secretsdump.py | Impacket tool for extracting secrets from SAM\u002FSYSTEM\u002FSECURITY |\n| hashcat | Password hash cracking for recovered NTLM and DCC2 hashes |\n| John the Ripper | Alternative password cracking tool |\n| Rubeus | Kerberos ticket manipulation and extraction tool |\n| Impacket | Python toolkit for working with Windows network protocols and credentials |\n\n## Common Scenarios\n\n**Scenario 1: Post-Breach Credential Assessment**\nExtract all cached credentials from LSASS memory to determine which accounts were exposed, prioritize password resets based on privilege level, check for golden ticket material (krbtgt hash), assess if cloud credentials were accessible.\n\n**Scenario 2: Lateral Movement Investigation**\nExtract NTLM hashes and Kerberos tickets to understand how the attacker moved between systems, identify pass-the-hash\u002Fpass-the-ticket artifacts, correlate extracted credentials with network logon events in event logs.\n\n**Scenario 3: Ransomware Operator Credential Theft**\nAnalyze pre-encryption memory dump for Mimikatz execution evidence, extract all available credential types, determine if domain admin credentials were obtained, assess if krbtgt was compromised (golden ticket), plan credential rotation strategy.\n\n**Scenario 4: Cloud Credential Theft from Endpoint**\nSearch endpoint memory for AWS access keys, Azure tokens, and GCP service account keys stored by CLI tools and browsers, identify exposed cloud permissions, immediately rotate discovered credentials, audit cloud audit logs for unauthorized access.\n\n## Output Format\n\n```\nCredential Extraction Summary:\n  Source: memory.raw (16 GB, Windows 10 Build 19041)\n  LSASS PID: 684\n\n  Credentials Recovered:\n    Local NTLM Hashes:        4 accounts\n    Domain NTLM Hashes:       3 accounts\n    Kerberos TGTs:             2 tickets\n    Kerberos TGS:              5 service tickets\n    Plaintext Passwords:       1 (WDigest - svc.backup)\n    Cached Domain Creds:       2 DCC2 hashes\n    LSA Secrets:               3 service account passwords\n    DPAPI Master Keys:         4 keys recovered\n    Cloud Credentials:         1 AWS access key, 1 Azure token\n\n  Highest Privilege Compromised: Domain Admin (CORP\\domain.admin)\n\n  Recommended Actions:\n    - Immediate: Reset all extracted account passwords\n    - Immediate: Rotate AWS access key AKIA...\n    - Urgent: Double krbtgt password reset (golden ticket mitigation)\n    - High: Revoke all Kerberos tickets via krbtgt rotation\n    - Medium: Audit DPAPI-protected data exposure\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"mitre_f3":36,"nist_csf":63,"subdomain":67,"description":7,"mitre_attack":68},[26,27,28,29,30,31,32],"forensics","credential-extraction","memory-forensics","volatility","mimikatz","password-hashes","incident-response","mahipal","cybersecurity","1.0",{"tactics":37,"version":41,"techniques":42},[38,39,40],"reconnaissance","positioning","initial-access","1.1",[43,47,50,53,57,60],{"id":44,"name":45,"source":46,"tactic":38},"T1555","Credentials from Password Stores","attack",{"id":48,"name":49,"source":46,"tactic":38},"T1555.003","Credentials from Password Stores: Credentials from Web Browsers",{"id":51,"name":52,"source":46,"tactic":39},"T1539","Steal Web Session Cookie",{"id":54,"name":55,"source":56,"tactic":40},"F1006","Account Takeover","f3",{"id":58,"name":59,"source":56,"tactic":40},"F1006.002","Account Takeover: Exposed Login Credential",{"id":61,"name":62,"source":56,"tactic":40},"F1006.001","Account Takeover: Exposed API Key",[64,65,66],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[69,70,71,72,73],"T1005","T1074","T1119","T1070","T1003","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":84,"prompt":94,"zipAvailable":95},[85,88,91],{"tool":86,"command":87},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill extracting-credentials-from-memory-dump",{"tool":89,"command":90},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill extracting-credentials-from-memory-dump",{"tool":92,"command":93},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill extracting-credentials-from-memory-dump","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",true,[97,101,107],{"path":98,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fapi-reference.md","REFERENCE","参考文档",2653,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002Freferences\u002Fapi-reference.md",{"path":108,"resourceType":109,"resourceTypeDesc":110,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fagent.py","SCRIPT","脚本",9589,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fextracting-credentials-from-memory-dump\u002Fscripts\u002Fagent.py",[114,122,130,139,146,153],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":134,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":134,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":134,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":134,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]