[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B96H0JXBACWXDBVE2RQ842":3,"skill-same:01M7B96H0JXBACWXDBVE2RQ842":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":13,"repositoryHtmlUrl":70,"repositoryHomepageUrl":6,"ownerHtmlUrl":71,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":72,"install":73,"resources":86},"01M7B96H0JXBACWXDBVE2RQ842","recovering-from-ransomware-attack",null,"Executes structured ransomware incident recovery following NIST\u002FCISA frameworks: environment isolation, forensic evidence preservation, clean infrastructure rebuild, prioritized restoration from verified backups, credential reset, and Active Directory\u002Fdatabase recovery in dependency order. Use when recovering from a ransomware attack, performing post-encryption restoration, or executing disaster recovery after ransomware encryption.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: recovering-from-ransomware-attack\ndescription: 'Executes structured ransomware incident recovery following NIST\u002FCISA\n  frameworks: environment isolation, forensic evidence preservation, clean infrastructure\n  rebuild, prioritized restoration from verified backups, credential reset, and\n  Active Directory\u002Fdatabase recovery in dependency order. Use when recovering from\n  a ransomware attack, performing post-encryption restoration, or executing disaster\n  recovery after ransomware encryption.\n\n  '\ndomain: cybersecurity\nsubdomain: ransomware-defense\ntags:\n- ransomware\n- recovery\n- incident-response\n- backup\n- defense\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.DS-11\n- RS.MA-01\n- RC.RP-01\n- PR.IR-01\nmitre_attack:\n- T1078\n- T1190\n- T1059\n- T1003\n- T1110\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - positioning\n  - monetization\n  - defense-impairment\n  techniques:\n  - id: T1531\n    name: Account Access Removal\n    tactic: positioning\n    source: attack\n  - id: F1005\n    name: Account Manipulation\n    tactic: defense-impairment\n    source: f3\n  - id: F1018\n    name: Convert to Cryptocurrency\n    tactic: monetization\n    source: f3\n  - id: T1219\n    name: Remote Access Tools\n    tactic: positioning\n    source: attack\n---\n# Recovering from Ransomware Attack\n\n## When to Use\n\n- After ransomware has encrypted production systems and the decision has been made to recover from backups\n- When building or validating a ransomware recovery runbook before an actual incident\n- After receiving a decryption key (paid ransom or law enforcement provided) and needing to safely decrypt\n- When partial recovery is needed alongside decryption of remaining systems\n- Conducting a recovery drill to validate RTO commitments\n\n**Do not use** before completing containment and forensic scoping. Premature recovery without understanding the attacker's access and persistence mechanisms risks re-infection.\n\n## Prerequisites\n\n- Incident declared and containment phase completed (all attacker access severed)\n- Forensic evidence preserved (disk images, memory dumps, network captures)\n- Backup integrity verified (immutable\u002Fair-gapped copies confirmed clean)\n- Clean build media available (OS installation media, golden images)\n- Recovery environment prepared (clean network segment isolated from compromised infrastructure)\n- Recovery priority list documented (Tier 1\u002F2\u002F3 systems in dependency order)\n\n## Workflow\n\n### Step 1: Establish Clean Recovery Environment\n\nBuild recovery infrastructure isolated from the compromised network:\n\n```bash\n# Create isolated recovery VLAN\n# No connectivity to compromised network segments\n# Dedicated internet access for patch downloads only (via proxy)\n\n# Recovery network architecture:\n# VLAN 999 (Recovery) - 10.99.0.0\u002F24\n#   - Recovery workstations (10.99.0.10-20)\n#   - Recovered DCs (10.99.0.50-55)\n#   - Recovered servers (10.99.0.100+)\n#   - Proxy for internet (10.99.0.1) - patches and updates only\n\n# Firewall rules: DENY all from recovery VLAN to production VLANs\n# Allow: Recovery VLAN -> Internet (HTTPS only, via proxy)\n# Allow: Recovery VLAN -> Backup infrastructure (restore traffic only)\n```\n\n### Step 2: Recover Identity Infrastructure First\n\nActive Directory must be recovered before any domain-joined systems:\n\n```powershell\n# AD Recovery Procedure\n# Step 2a: Restore AD from known-good backup\n# Use DSRM (Directory Services Restore Mode) boot\n\n# 1. Build clean Windows Server from ISO\n# 2. Promote as DC using AD restore\n# 3. Restore System State from immutable backup\n\n# Verify AD backup is pre-compromise\n# Check backup timestamp against earliest known compromise date\nwbadmin get versions -backuptarget:E: -machine:DC01\n\n# Restore system state in DSRM\nwbadmin start systemstaterecovery -version:02\u002F15\u002F2026-04:00 -backuptarget:E: -machine:DC01 -quiet\n\n# After restore, reset critical accounts\n# Reset krbtgt password TWICE (invalidates all Kerberos tickets)\n# This prevents Golden Ticket persistence\nImport-Module ActiveDirectory\nSet-ADAccountPassword -Identity krbtgt -Reset -NewPassword (ConvertTo-SecureString \"NewKrbtgt2026!Complex#1\" -AsPlainText -Force)\n# Wait for replication (minimum 12 hours), then reset again\nSet-ADAccountPassword -Identity krbtgt -Reset -NewPassword (ConvertTo-SecureString \"NewKrbtgt2026!Complex#2\" -AsPlainText -Force)\n\n# Reset all privileged account passwords\n$privilegedGroups = @(\"Domain Admins\", \"Enterprise Admins\", \"Schema Admins\", \"Administrators\")\nforeach ($group in $privilegedGroups) {\n    Get-ADGroupMember -Identity $group -Recursive | ForEach-Object {\n        Set-ADAccountPassword -Identity $_.SamAccountName -Reset `\n            -NewPassword (ConvertTo-SecureString (New-Guid).Guid -AsPlainText -Force)\n        Set-ADUser -Identity $_.SamAccountName -ChangePasswordAtLogon $true\n    }\n}\n\n# Validate AD health\ndcdiag \u002Fv \u002Fc \u002Fd \u002Fe \u002Fs:DC01\nrepadmin \u002Fshowrepl\n```\n\n### Step 3: Validate Backup Integrity Before Restoration\n\n```bash\n# Scan backup files for ransomware artifacts before restoring\n# Use offline antivirus scanning on backup mount\n\n# Mount backup as read-only\nmount -o ro,noexec \u002Fdev\u002Fbackup_lv \u002Fmnt\u002Fbackup_verify\n\n# Scan with ClamAV\nclamscan -r --infected --log=\u002Fvar\u002Flog\u002Fbackup_scan.log \u002Fmnt\u002Fbackup_verify\n\n# Check for known ransomware indicators\nfind \u002Fmnt\u002Fbackup_verify -name \"*.encrypted\" -o -name \"*.locked\" \\\n    -o -name \"*.lockbit\" -o -name \"DECRYPT_*\" -o -name \"readme.txt\" \\\n    -o -name \"RECOVER-*\" -o -name \"HOW_TO_*\" | tee \u002Fvar\u002Flog\u002Fransomware_check.log\n\n# Verify database consistency (SQL Server example)\n# Restore database to temporary instance for validation\nRESTORE VERIFYONLY FROM DISK = '\u002Fmnt\u002Fbackup_verify\u002Fdatabases\u002Ferp_db.bak'\n    WITH CHECKSUM\n```\n\n### Step 4: Restore Systems in Priority Order\n\nFollow dependency-based recovery sequence:\n\n```\nRecovery Order:\nPhase 1 (Hours 0-4): Identity & Infrastructure\n  1. Domain Controllers (AD, DNS, DHCP)\n  2. Certificate Authority (if applicable)\n  3. Core network services (DHCP, NTP)\n\nPhase 2 (Hours 4-12): Critical Business Systems\n  4. Database servers (SQL, Oracle, PostgreSQL)\n  5. Core business applications (ERP, CRM)\n  6. Email (Exchange, M365 hybrid)\n\nPhase 3 (Hours 12-24): Important Systems\n  7. File servers\n  8. Web applications\n  9. Monitoring and security tools (SIEM, EDR)\n\nPhase 4 (Hours 24-48): Remaining Systems\n  10. Development environments\n  11. Archive systems\n  12. Non-critical applications\n```\n\n```powershell\n# Veeam Instant Recovery - fastest restore for VMware\u002FHyper-V\n# Boots VM directly from backup file, then migrates to production storage\n\n# Instant recovery for Tier 1 system\nStart-VBRInstantRecovery -RestorePoint (Get-VBRRestorePoint -Name \"DC01\" |\n    Sort-Object CreationTime -Descending | Select-Object -First 1) `\n    -VMName \"DC01-Recovered\" `\n    -Server (Get-VBRServer -Name \"esxi01.recovery.local\") `\n    -Datastore \"recovery-datastore\"\n\n# After validation, migrate to production storage\nStart-VBRQuickMigration -VM \"DC01-Recovered\" `\n    -Server (Get-VBRServer -Name \"esxi01.prod.local\") `\n    -Datastore \"production-datastore\"\n```\n\n### Step 5: Validate Recovered Systems and Harden\n\nBefore connecting recovered systems to production:\n\n```powershell\n# Check for persistence mechanisms\n# Scheduled Tasks\nGet-ScheduledTask | Where-Object {$_.State -ne \"Disabled\"} |\n    Select-Object TaskName, TaskPath, State, Author |\n    Export-Csv C:\\recovery\\scheduled_tasks.csv\n\n# Services\nGet-Service | Where-Object {$_.StartType -eq \"Automatic\"} |\n    Select-Object Name, DisplayName, StartType, Status |\n    Export-Csv C:\\recovery\\auto_services.csv\n\n# Startup items\nGet-CimInstance Win32_StartupCommand |\n    Select-Object Name, Command, Location, User |\n    Export-Csv C:\\recovery\\startup_items.csv\n\n# WMI event subscriptions (common persistence)\nGet-WmiObject -Namespace root\\subscription -Class __EventFilter\nGet-WmiObject -Namespace root\\subscription -Class __EventConsumer\n\n# Registry run keys\nGet-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\nGet-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\"\nGet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\n\n# Verify no unauthorized admin accounts\nGet-LocalGroupMember -Group \"Administrators\"\nGet-ADGroupMember -Identity \"Domain Admins\"\n\n# Apply latest patches before connecting to production\nInstall-WindowsUpdate -AcceptAll -AutoReboot\n```\n\n### Step 6: Phased Network Reconnection\n\n```\nPhase 1: Reconnect identity infrastructure\n  - DCs online in production VLAN\n  - Validate replication and authentication\n  - Monitor for suspicious authentication patterns\n\nPhase 2: Reconnect Tier 1 systems\n  - One system at a time\n  - Monitor EDR for 1 hour before proceeding to next\n  - Validate application functionality\n\nPhase 3: Reconnect remaining systems\n  - Groups of 5-10 systems\n  - Continue monitoring for re-infection indicators\n\nThroughout: SOC monitoring on high alert\n  - EDR in aggressive blocking mode\n  - All previous IOCs loaded in detection rules\n  - Canary files deployed on recovered systems\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **DSRM** | Directory Services Restore Mode: special boot mode for domain controllers that allows AD database restoration |\n| **krbtgt Reset** | Resetting the krbtgt account password twice invalidates all Kerberos tickets, defeating Golden Ticket persistence |\n| **Instant Recovery** | Backup technology that boots a VM directly from backup storage for immediate availability while migrating data in background |\n| **Evidence Preservation** | Maintaining forensic images and logs before recovery begins, required for law enforcement and insurance claims |\n| **Clean Build** | Rebuilding systems from trusted installation media rather than attempting to clean infected systems |\n| **Dependency Chain** | The order in which systems must be recovered based on service dependencies (e.g., AD before domain members) |\n\n## Tools & Systems\n\n- **Veeam Instant Recovery**: Boots VMs directly from backup with near-zero RTO, then live-migrates to production\n- **Microsoft DSRM**: AD-specific recovery mode for restoring domain controllers from backup\n- **DSInternals PowerShell Module**: Validates AD database integrity and identifies compromised credentials post-recovery\n- **Rubrik Instant Recovery**: Mounts backup as live VM in seconds for rapid recovery validation\n- **ClamAV**: Open-source antivirus for scanning backup files before restoration\n\n## Common Scenarios\n\n### Scenario: Manufacturing Company Full Recovery After LockBit Attack\n\n**Context**: A manufacturer with 300 servers has 80% of infrastructure encrypted by LockBit. Immutable backups from 48 hours ago are verified clean. Production lines are down, costing $500K\u002Fday.\n\n**Approach**:\n1. Establish recovery VLAN (10.99.0.0\u002F24) isolated from compromised network\n2. Restore 2 domain controllers from immutable backup using Veeam Instant Recovery (2 hours)\n3. Reset krbtgt password twice with 12-hour gap, reset all admin passwords\n4. Validate AD with dcdiag, scan for Golden Ticket indicators with DSInternals\n5. Restore ERP database (SAP) and verify data consistency (4 hours)\n6. Restore MES (Manufacturing Execution System) and SCADA historians (3 hours)\n7. Bring production line controllers online in isolated OT network first\n8. Phased reconnection over 48 hours with continuous EDR monitoring\n9. Total recovery: 72 hours (within 96-hour RTO commitment)\n\n**Pitfalls**:\n- Rushing to reconnect systems without validating absence of persistence mechanisms, causing re-infection\n- Restoring from the most recent backup without verifying it predates the compromise (attacker may have poisoned recent backups)\n- Not resetting the krbtgt password twice, allowing attackers to maintain Golden Ticket access\n- Restoring systems in the wrong order (application servers before their database dependencies)\n\n## Output Format\n\n```\n## Ransomware Recovery Status Report\n\n**Incident ID**: [ID]\n**Recovery Start**: [Timestamp]\n**Current Phase**: [1-4]\n**Estimated Completion**: [Timestamp]\n\n### Recovery Progress\n| Phase | Systems | Status | Started | Completed | RTO Target |\n|-------|---------|--------|---------|-----------|------------|\n| 1 - Identity | DC01, DC02, DNS | Complete | HH:MM | HH:MM | 4 hours |\n| 2 - Critical | ERP, DB01, DB02 | In Progress | HH:MM | -- | 12 hours |\n| 3 - Important | FS01, Email, Web | Pending | -- | -- | 24 hours |\n| 4 - Remaining | Dev, Archive | Pending | -- | -- | 48 hours |\n\n### Validation Checklist\n- [ ] AD integrity verified (dcdiag, repadmin)\n- [ ] krbtgt password reset (2x with interval)\n- [ ] All admin passwords reset\n- [ ] Persistence mechanisms scanned\n- [ ] EDR deployed and active on recovered systems\n- [ ] IOCs loaded in detection rules\n- [ ] Canary files deployed\n```\n","# Recovering from Ransomware Attack\n\n## When to Use\n\n- After ransomware has encrypted production systems and the decision has been made to recover from backups\n- When building or validating a ransomware recovery runbook before an actual incident\n- After receiving a decryption key (paid ransom or law enforcement provided) and needing to safely decrypt\n- When partial recovery is needed alongside decryption of remaining systems\n- Conducting a recovery drill to validate RTO commitments\n\n**Do not use** before completing containment and forensic scoping. Premature recovery without understanding the attacker's access and persistence mechanisms risks re-infection.\n\n## Prerequisites\n\n- Incident declared and containment phase completed (all attacker access severed)\n- Forensic evidence preserved (disk images, memory dumps, network captures)\n- Backup integrity verified (immutable\u002Fair-gapped copies confirmed clean)\n- Clean build media available (OS installation media, golden images)\n- Recovery environment prepared (clean network segment isolated from compromised infrastructure)\n- Recovery priority list documented (Tier 1\u002F2\u002F3 systems in dependency order)\n\n## Workflow\n\n### Step 1: Establish Clean Recovery Environment\n\nBuild recovery infrastructure isolated from the compromised network:\n\n```bash\n# Create isolated recovery VLAN\n# No connectivity to compromised network segments\n# Dedicated internet access for patch downloads only (via proxy)\n\n# Recovery network architecture:\n# VLAN 999 (Recovery) - 10.99.0.0\u002F24\n#   - Recovery workstations (10.99.0.10-20)\n#   - Recovered DCs (10.99.0.50-55)\n#   - Recovered servers (10.99.0.100+)\n#   - Proxy for internet (10.99.0.1) - patches and updates only\n\n# Firewall rules: DENY all from recovery VLAN to production VLANs\n# Allow: Recovery VLAN -> Internet (HTTPS only, via proxy)\n# Allow: Recovery VLAN -> Backup infrastructure (restore traffic only)\n```\n\n### Step 2: Recover Identity Infrastructure First\n\nActive Directory must be recovered before any domain-joined systems:\n\n```powershell\n# AD Recovery Procedure\n# Step 2a: Restore AD from known-good backup\n# Use DSRM (Directory Services Restore Mode) boot\n\n# 1. Build clean Windows Server from ISO\n# 2. Promote as DC using AD restore\n# 3. Restore System State from immutable backup\n\n# Verify AD backup is pre-compromise\n# Check backup timestamp against earliest known compromise date\nwbadmin get versions -backuptarget:E: -machine:DC01\n\n# Restore system state in DSRM\nwbadmin start systemstaterecovery -version:02\u002F15\u002F2026-04:00 -backuptarget:E: -machine:DC01 -quiet\n\n# After restore, reset critical accounts\n# Reset krbtgt password TWICE (invalidates all Kerberos tickets)\n# This prevents Golden Ticket persistence\nImport-Module ActiveDirectory\nSet-ADAccountPassword -Identity krbtgt -Reset -NewPassword (ConvertTo-SecureString \"NewKrbtgt2026!Complex#1\" -AsPlainText -Force)\n# Wait for replication (minimum 12 hours), then reset again\nSet-ADAccountPassword -Identity krbtgt -Reset -NewPassword (ConvertTo-SecureString \"NewKrbtgt2026!Complex#2\" -AsPlainText -Force)\n\n# Reset all privileged account passwords\n$privilegedGroups = @(\"Domain Admins\", \"Enterprise Admins\", \"Schema Admins\", \"Administrators\")\nforeach ($group in $privilegedGroups) {\n    Get-ADGroupMember -Identity $group -Recursive | ForEach-Object {\n        Set-ADAccountPassword -Identity $_.SamAccountName -Reset `\n            -NewPassword (ConvertTo-SecureString (New-Guid).Guid -AsPlainText -Force)\n        Set-ADUser -Identity $_.SamAccountName -ChangePasswordAtLogon $true\n    }\n}\n\n# Validate AD health\ndcdiag \u002Fv \u002Fc \u002Fd \u002Fe \u002Fs:DC01\nrepadmin \u002Fshowrepl\n```\n\n### Step 3: Validate Backup Integrity Before Restoration\n\n```bash\n# Scan backup files for ransomware artifacts before restoring\n# Use offline antivirus scanning on backup mount\n\n# Mount backup as read-only\nmount -o ro,noexec \u002Fdev\u002Fbackup_lv \u002Fmnt\u002Fbackup_verify\n\n# Scan with ClamAV\nclamscan -r --infected --log=\u002Fvar\u002Flog\u002Fbackup_scan.log \u002Fmnt\u002Fbackup_verify\n\n# Check for known ransomware indicators\nfind \u002Fmnt\u002Fbackup_verify -name \"*.encrypted\" -o -name \"*.locked\" \\\n    -o -name \"*.lockbit\" -o -name \"DECRYPT_*\" -o -name \"readme.txt\" \\\n    -o -name \"RECOVER-*\" -o -name \"HOW_TO_*\" | tee \u002Fvar\u002Flog\u002Fransomware_check.log\n\n# Verify database consistency (SQL Server example)\n# Restore database to temporary instance for validation\nRESTORE VERIFYONLY FROM DISK = '\u002Fmnt\u002Fbackup_verify\u002Fdatabases\u002Ferp_db.bak'\n    WITH CHECKSUM\n```\n\n### Step 4: Restore Systems in Priority Order\n\nFollow dependency-based recovery sequence:\n\n```\nRecovery Order:\nPhase 1 (Hours 0-4): Identity & Infrastructure\n  1. Domain Controllers (AD, DNS, DHCP)\n  2. Certificate Authority (if applicable)\n  3. Core network services (DHCP, NTP)\n\nPhase 2 (Hours 4-12): Critical Business Systems\n  4. Database servers (SQL, Oracle, PostgreSQL)\n  5. Core business applications (ERP, CRM)\n  6. Email (Exchange, M365 hybrid)\n\nPhase 3 (Hours 12-24): Important Systems\n  7. File servers\n  8. Web applications\n  9. Monitoring and security tools (SIEM, EDR)\n\nPhase 4 (Hours 24-48): Remaining Systems\n  10. Development environments\n  11. Archive systems\n  12. Non-critical applications\n```\n\n```powershell\n# Veeam Instant Recovery - fastest restore for VMware\u002FHyper-V\n# Boots VM directly from backup file, then migrates to production storage\n\n# Instant recovery for Tier 1 system\nStart-VBRInstantRecovery -RestorePoint (Get-VBRRestorePoint -Name \"DC01\" |\n    Sort-Object CreationTime -Descending | Select-Object -First 1) `\n    -VMName \"DC01-Recovered\" `\n    -Server (Get-VBRServer -Name \"esxi01.recovery.local\") `\n    -Datastore \"recovery-datastore\"\n\n# After validation, migrate to production storage\nStart-VBRQuickMigration -VM \"DC01-Recovered\" `\n    -Server (Get-VBRServer -Name \"esxi01.prod.local\") `\n    -Datastore \"production-datastore\"\n```\n\n### Step 5: Validate Recovered Systems and Harden\n\nBefore connecting recovered systems to production:\n\n```powershell\n# Check for persistence mechanisms\n# Scheduled Tasks\nGet-ScheduledTask | Where-Object {$_.State -ne \"Disabled\"} |\n    Select-Object TaskName, TaskPath, State, Author |\n    Export-Csv C:\\recovery\\scheduled_tasks.csv\n\n# Services\nGet-Service | Where-Object {$_.StartType -eq \"Automatic\"} |\n    Select-Object Name, DisplayName, StartType, Status |\n    Export-Csv C:\\recovery\\auto_services.csv\n\n# Startup items\nGet-CimInstance Win32_StartupCommand |\n    Select-Object Name, Command, Location, User |\n    Export-Csv C:\\recovery\\startup_items.csv\n\n# WMI event subscriptions (common persistence)\nGet-WmiObject -Namespace root\\subscription -Class __EventFilter\nGet-WmiObject -Namespace root\\subscription -Class __EventConsumer\n\n# Registry run keys\nGet-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\nGet-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\"\nGet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\"\n\n# Verify no unauthorized admin accounts\nGet-LocalGroupMember -Group \"Administrators\"\nGet-ADGroupMember -Identity \"Domain Admins\"\n\n# Apply latest patches before connecting to production\nInstall-WindowsUpdate -AcceptAll -AutoReboot\n```\n\n### Step 6: Phased Network Reconnection\n\n```\nPhase 1: Reconnect identity infrastructure\n  - DCs online in production VLAN\n  - Validate replication and authentication\n  - Monitor for suspicious authentication patterns\n\nPhase 2: Reconnect Tier 1 systems\n  - One system at a time\n  - Monitor EDR for 1 hour before proceeding to next\n  - Validate application functionality\n\nPhase 3: Reconnect remaining systems\n  - Groups of 5-10 systems\n  - Continue monitoring for re-infection indicators\n\nThroughout: SOC monitoring on high alert\n  - EDR in aggressive blocking mode\n  - All previous IOCs loaded in detection rules\n  - Canary files deployed on recovered systems\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **DSRM** | Directory Services Restore Mode: special boot mode for domain controllers that allows AD database restoration |\n| **krbtgt Reset** | Resetting the krbtgt account password twice invalidates all Kerberos tickets, defeating Golden Ticket persistence |\n| **Instant Recovery** | Backup technology that boots a VM directly from backup storage for immediate availability while migrating data in background |\n| **Evidence Preservation** | Maintaining forensic images and logs before recovery begins, required for law enforcement and insurance claims |\n| **Clean Build** | Rebuilding systems from trusted installation media rather than attempting to clean infected systems |\n| **Dependency Chain** | The order in which systems must be recovered based on service dependencies (e.g., AD before domain members) |\n\n## Tools & Systems\n\n- **Veeam Instant Recovery**: Boots VMs directly from backup with near-zero RTO, then live-migrates to production\n- **Microsoft DSRM**: AD-specific recovery mode for restoring domain controllers from backup\n- **DSInternals PowerShell Module**: Validates AD database integrity and identifies compromised credentials post-recovery\n- **Rubrik Instant Recovery**: Mounts backup as live VM in seconds for rapid recovery validation\n- **ClamAV**: Open-source antivirus for scanning backup files before restoration\n\n## Common Scenarios\n\n### Scenario: Manufacturing Company Full Recovery After LockBit Attack\n\n**Context**: A manufacturer with 300 servers has 80% of infrastructure encrypted by LockBit. Immutable backups from 48 hours ago are verified clean. Production lines are down, costing $500K\u002Fday.\n\n**Approach**:\n1. Establish recovery VLAN (10.99.0.0\u002F24) isolated from compromised network\n2. Restore 2 domain controllers from immutable backup using Veeam Instant Recovery (2 hours)\n3. Reset krbtgt password twice with 12-hour gap, reset all admin passwords\n4. Validate AD with dcdiag, scan for Golden Ticket indicators with DSInternals\n5. Restore ERP database (SAP) and verify data consistency (4 hours)\n6. Restore MES (Manufacturing Execution System) and SCADA historians (3 hours)\n7. Bring production line controllers online in isolated OT network first\n8. Phased reconnection over 48 hours with continuous EDR monitoring\n9. Total recovery: 72 hours (within 96-hour RTO commitment)\n\n**Pitfalls**:\n- Rushing to reconnect systems without validating absence of persistence mechanisms, causing re-infection\n- Restoring from the most recent backup without verifying it predates the compromise (attacker may have poisoned recent backups)\n- Not resetting the krbtgt password twice, allowing attackers to maintain Golden Ticket access\n- Restoring systems in the wrong order (application servers before their database dependencies)\n\n## Output Format\n\n```\n## Ransomware Recovery Status Report\n\n**Incident ID**: [ID]\n**Recovery Start**: [Timestamp]\n**Current Phase**: [1-4]\n**Estimated Completion**: [Timestamp]\n\n### Recovery Progress\n| Phase | Systems | Status | Started | Completed | RTO Target |\n|-------|---------|--------|---------|-----------|------------|\n| 1 - Identity | DC01, DC02, DNS | Complete | HH:MM | HH:MM | 4 hours |\n| 2 - Critical | ERP, DB01, DB02 | In Progress | HH:MM | -- | 12 hours |\n| 3 - Important | FS01, Email, Web | Pending | -- | -- | 24 hours |\n| 4 - Remaining | Dev, Archive | Pending | -- | -- | 48 hours |\n\n### Validation Checklist\n- [ ] AD integrity verified (dcdiag, repadmin)\n- [ ] krbtgt password reset (2x with interval)\n- [ ] All admin passwords reset\n- [ ] Persistence mechanisms scanned\n- [ ] EDR deployed and active on recovered systems\n- [ ] IOCs loaded in detection rules\n- [ ] Canary files deployed\n```\n",{"name":5,"tags":24,"author":30,"domain":31,"license":14,"version":32,"mitre_f3":33,"nist_csf":54,"subdomain":59,"description":60,"mitre_attack":61},[25,26,27,28,29],"ransomware","recovery","incident-response","backup","defense","mahipal","cybersecurity","1.0.0",{"tactics":34,"version":38,"techniques":39},[35,36,37],"positioning","monetization","defense-impairment","1.1",[40,44,48,51],{"id":41,"name":42,"source":43,"tactic":35},"T1531","Account Access Removal","attack",{"id":45,"name":46,"source":47,"tactic":37},"F1005","Account Manipulation","f3",{"id":49,"name":50,"source":47,"tactic":36},"F1018","Convert to Cryptocurrency",{"id":52,"name":53,"source":43,"tactic":35},"T1219","Remote Access Tools",[55,56,57,58],"PR.DS-11","RS.MA-01","RC.RP-01","PR.IR-01","ransomware-defense","Executes structured ransomware incident recovery following NIST\u002FCISA frameworks: environment isolation, forensic evidence preservation, clean infrastructure rebuild, prioritized restoration from verified backups, credential reset, and Active Directory\u002Fdatabase recovery in dependency order. Use when recovering from a ransomware attack, performing post-encryption restoration, or executing disaster recovery after ransomware encryption.\n",[62,63,64,65,66],"T1078","T1190","T1059","T1003","T1110","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill recovering-from-ransomware-attack",{"tool":79,"command":80},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill recovering-from-ransomware-attack",{"tool":82,"command":83},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill recovering-from-ransomware-attack","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002FSKILL.md",true,[87,91,97,101,105,111],{"path":88,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fapi-reference.md","REFERENCE","参考文档",1726,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002Freferences\u002Fapi-reference.md",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fstandards.md",1069,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002Freferences\u002Fstandards.md",{"path":102,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fworkflows.md",1403,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002Freferences\u002Fworkflows.md",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fagent.py","SCRIPT","脚本",6735,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002Fscripts\u002Fagent.py",{"path":112,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fprocess.py",11115,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Frecovering-from-ransomware-attack\u002Fscripts\u002Fprocess.py",[116,124,131,138,145,152],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]