[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74YT06YF0V79X9QVVGPR5KB":3,"skill-same:01M74YT06YF0V79X9QVVGPR5KB":73},{"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":37,"commitSha":38,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M74YT06YF0V79X9QVVGPR5KB","extracting-credentials-from-memory-dump",null,"Extract cached credentials, password hashes, Kerberos tickets, and authentication tokens from memory dumps using Volatility and Mimikatz for forensic investigation.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fextracting-credentials-from-memory-dump\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: extracting-credentials-from-memory-dump\ndescription: Extract cached credentials, password hashes, Kerberos tickets, and authentication tokens from memory dumps using Volatility and Mimikatz for forensic investigation.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags: [forensics, credential-extraction, memory-forensics, volatility, mimikatz, password-hashes, incident-response]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\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,"subdomain":36,"description":7},[26,27,28,29,30,31,32],"forensics","credential-extraction","memory-forensics","volatility","mimikatz","password-hashes","incident-response","mahipal","cybersecurity","1.0","digital-forensics","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill extracting-credentials-from-memory-dump",{"tool":49,"command":50},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill extracting-credentials-from-memory-dump",{"tool":52,"command":53},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill extracting-credentials-from-memory-dump","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fextracting-credentials-from-memory-dump\u002FSKILL.md",true,[57,61,67],{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fapi-reference.md","REFERENCE","参考文档",2653,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fextracting-credentials-from-memory-dump\u002Freferences\u002Fapi-reference.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fagent.py","SCRIPT","脚本",9589,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fextracting-credentials-from-memory-dump\u002Fscripts\u002Fagent.py",[74,82,89,96,103,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]