Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Systematically map and remove malware, backdoors, and attacker persistence mechanisms (registry Run keys, scheduled tasks, WMI subscriptions, services, cron/init.d) from infected Windows and Linux…
Imported from mukul975/anthropic-cybersecurity-skills (skills/eradicating-malware-from-infected-systems/SKILL.md). Install upstream with npx skills add mukul975/anthropic-cybersecurity-skills --skill eradicating-malware-from-infected-systems. Copyright stays with the author (Apache-2.0).
Eradicating Malware from Infected Systems
When to Use
Malware infection confirmed and containment is in place
Forensic investigation has identified all persistence mechanisms
All compromised systems have been identified and scoped
Ready to remove attacker artifacts and restore clean state
# Reset all compromised user passwordsImport-Module ActiveDirectoryGet-ADUser -Filter * -SearchBase "OU=CompromisedUsers,DC=domain,DC=com" | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString "TempP@ss!$(Get-Random)" -AsPlainText -Force)# Reset KRBTGT password (twice, 12+ hours apart for Kerberos golden ticket attack)Reset-KrbtgtPassword -DomainController DC01# Wait 12+ hours, then reset againReset-KrbtgtPassword -DomainController DC01# Rotate service account passwordsGet-ADServiceAccount -Filter * | ForEach-Object { Reset-ADServiceAccountPassword -Identity $_.Name}# Revoke all Azure AD tokensGet-AzureADUser -All $true | ForEach-Object { Revoke-AzureADUserAllRefreshToken -ObjectId $_.ObjectId}# Rotate API keys and secrets# Application-specific credential rotation
Step 5: Patch Vulnerability Used for Initial Access
# Identify and patch the entry point vulnerability# Windows UpdateInstall-WindowsUpdate -KBArticleID "KB5001234" -AcceptAll -AutoReboot# Linux patchingapt update && apt upgrade -y # Debian/Ubuntuyum update -y # RHEL/CentOS# Application-specific patches# Update web application frameworks, CMS, etc.# Verify patch was appliedGet-HotFix -Id "KB5001234"
Step 6: Validate Eradication
# Full system scan with updated signatures# CrowdStrike Falcon - On-demand scancurl -X POST "https://api.crowdstrike.com/scanner/entities/scans/v1" \ -H "Authorization: Bearer $FALCON_TOKEN" \ -H "Content-Type: application/json" \ -d '{"ids": ["device_id"]}'# Verify no persistence mechanisms remainautorunsc.exe -accepteula -a * -c -h -s -v | findstr /i "unknown verified"# Check for any remaining suspicious processesGet-Process | Where-Object {$_.Path -notlike "C:\Windows\*" -and $_.Path -notlike "C:\Program Files*"}# Verify no unauthorized network connectionsGet-NetTCPConnection -State Established | Where-Object {$_.RemoteAddress -notlike "10.*" -and $_.RemoteAddress -notlike "172.16.*"} | Select-Object LocalPort, RemoteAddress, RemotePort, OwningProcess# Run YARA rules again to confirm no artifacts remainyara -r malware_rules/specific_family.yar C:\ 2>/dev/null
Key Concepts
Concept
Description
Persistence Mechanism
Method attacker uses to maintain access across reboots
Root Cause Remediation
Fixing the vulnerability that enabled initial compromise
Credential Rotation
Resetting all potentially compromised passwords and tokens
KRBTGT Reset
Invalidating Kerberos tickets after golden ticket attack
Indicator Sweep
Scanning all systems for known malicious artifacts
Validation Scan
Confirming eradication was successful before recovery
Re-imaging
Rebuilding systems from clean images rather than cleaning
Tools & Systems
Tool
Purpose
Sysinternals Autoruns
Enumerate all Windows autostart locations
YARA
Custom rule-based malware scanning
CrowdStrike/SentinelOne
EDR-based scanning and remediation
ClamAV
Open-source antivirus scanning
PowerShell
Scripted cleanup and validation
Velociraptor
Remote artifact collection and remediation
Common Scenarios
RAT with Multiple Persistence: Remote access trojan using registry, scheduled task, and WMI subscription. Must remove all three persistence mechanisms.
Web Shell on IIS/Apache: PHP/ASPX web shell in web root. Remove shell, audit all web files, patch application vulnerability.
Rootkit Infection: Kernel-level rootkit that survives cleanup. Requires full re-image from known-good media.
Fileless Malware: PowerShell-based attack living in memory and registry. Remove registry entries, clear WMI subscriptions, restart system.
Active Directory Compromise: Attacker created backdoor accounts and golden tickets. Reset KRBTGT, remove rogue accounts, audit group memberships.
Output Format
Eradication action log with all removed artifacts
Credential rotation confirmation report
Vulnerability patching verification
Post-eradication validation scan results
Systems cleared for recovery phase
Installed into a catalogue, chosen by a router
Install eradicating-malware-from-infected-systems and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.