Identify and remove unauthorized scheduled tasks, automation jobs, and persistent background execution mechanisms across local systems and cloud platforms (AWS, Azure, GCP).
Given access to local systems, cloud automation consoles, and administrative tools to enumerate, disable, and remove scheduled tasks.
All unauthorized and suspicious scheduled tasks and automation are identified, removed or disabled, and documented across local and cloud environments.
Get-ScheduledTask | Select-Object TaskName, State, Actions
Look for:
Operator Note: Check for hidden tasks and those created by “SYSTEM” or unknown users.
crontab -l
cat /etc/crontab
ls /etc/cron.d/
Look for:
Operator Note: Review
/var/log/syslog
or/var/log/cron
for execution history.
launchctl list
cat /Library/LaunchDaemons/*
cat /Library/LaunchAgents/*
Look for:
aws events list-rules
aws lambda list-functions
aws stepfunctions list-state-machines
Look for:
Operator Note: Functions without tags or ownership are high priority for review.
Get-AzAutomationAccount
Get-AzAutomationRunbook
Get-AzLogicApp
Get-AzFunctionApp
Look for:
Operator Note: Review Activity Log → filter by resource type and create/update actions.
gcloud scheduler jobs list
gcloud functions list
Look for:
Operator Note: Cloud Functions used by attackers often have generic names → audit naming and descriptions.
Operator Note: Shadow automation (automation implemented without IT/security approval) should be reviewed carefully.
Unregister-ScheduledTask -TaskName "TaskName" -Confirm:$false
crontab -r
rm /etc/cron.d/unapprovedjob
sudo launchctl bootout system /Library/LaunchDaemons/com.unauthorized.plist
sudo rm /Library/LaunchDaemons/com.unauthorized.plist
aws events delete-rule --name "RuleName"
aws lambda delete-function --function-name "FunctionName"
Remove-AzAutomationRunbook -AutomationAccountName "AccountName" -Name "RunbookName"
Remove-AzFunctionApp -Name "FunctionName"
gcloud scheduler jobs delete "job-name"
gcloud functions delete "function-name"
Operator Note: Always disable first unless critical → preserves for forensic review.
Tool | Platform | Installation | Usage |
---|---|---|---|
PowerShell / Task Scheduler | Windows | Built-in | Task enumeration/removal |
systemctl / crontab | Linux/macOS | Native | Cron/launchd management |
AWS CLI | Cross-platform | Package manager | Lambda/EventBridge |
Azure CLI / PowerShell | Cross-platform | Native | Azure Automation |
GCloud CLI | Cross-platform | Package manager | Scheduler/Functions |
Date | Version | Description | Author |
---|---|---|---|
2025-05-02 | 1.0 | Created from scratch with deep operator guidance across local, cloud, and SaaS platforms | Leo |