developer security skill risk: low
Cloud Workload Protection Implementation
Provides instructions and Python code examples using boto3 to monitor cloud workloads for runtime threats including suspicious processes, network connections, and file integrity.
- External action: medium
SKILL 4 files · 2 folders
SKILL.md
---
name: implementing-cloud-workload-protection
description: "Implements cloud workload protection using boto3 and google-cloud APIs for runtime security monitoring, process"
---
# Implementing Cloud Workload Protection
## When to Use
- When deploying or configuring implementing cloud workload protection capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
## Prerequisites
- Familiarity with cloud security 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
## Instructions
Monitor cloud workloads for runtime threats by checking process lists, network
connections, file integrity, and resource utilization anomalies.
```python
import boto3
ssm = boto3.client("ssm")
# Run command on EC2 instances to check for suspicious processes
response = ssm.send_command(
InstanceIds=["i-1234567890abcdef0"],
DocumentName="AWS-RunShellScript",
Parameters={"commands": ["ps aux | grep -E 'xmrig|minerd|cryptonight'"]},
)
```
Key protection areas:
1. Process monitoring for cryptominers and reverse shells
2. File integrity monitoring on critical system files
3. Network connection auditing for C2 callbacks
4. Resource utilization anomaly detection (CPU spikes)
5. Unauthorized binary detection via hash comparison
## Examples
```python
# Check for unauthorized outbound connections
ssm.send_command(
InstanceIds=instances,
DocumentName="AWS-RunShellScript",
Parameters={"commands": ["ss -tlnp | grep ESTABLISHED"]},
)
```
REQUIRED CONTEXT
- cloud security concepts familiarity
- test/lab environment access
EXPECTED OUTPUT
- Format
- markdown
- Constraints
-
- include code examples
- list key protection areas
- cover prerequisites and when-to-use guidance
EXAMPLES
Includes two Python code examples using boto3 SSM to run shell commands for process and network checks.
CAVEATS
- Missing context
-
- Desired output format or report structure
- Full working code examples for all listed protection areas
- Error handling or authentication steps
- Ambiguities
-
- Description text is truncated mid-sentence ('process')
- Mentions google-cloud APIs in header but provides no Google Cloud code or details
QUALITY
- OVERALL
- 0.50
- CLARITY
- 0.65
- SPECIFICITY
- 0.45
- REUSABILITY
- 0.55
- COMPLETENESS
- 0.40
IMPROVEMENT SUGGESTIONS
- Complete the truncated description sentence and add balanced Google Cloud example code
- Add explicit output format requirement (e.g., JSON report schema)
- Specify success criteria or validation steps for each protection area
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Python Security Code Auditor developer security
- Arcjet AI Endpoint Protection Implementer developer security
- Multi-Layer Data Validation Implementer developer security
- Git Diff Security Auditor developer security
- Cybersecurity Viral Tool Architect developer security
- LLM Security Vulnerability Analyzer developer security
- AI Agent Security Evaluation Checklist Creator developer security
- Cyberscam Survival Simulator Specification developer security
- AI Agent Permissions Updater for Claude Gemini developer security
- Prompt Injection Jailbreak Detector developer security
- Ethereum Smart Contract Vulnerability Analyzer developer security
- SHA-256 Log Integrity Chain Builder developer security
- Python mTLS Certificate Generator for Zero Trust developer security
- GHAS Alerts and Repo Vulnerability Analyzer developer security
- Codebase Security Fix and Test Writer developer security
- AI Vulnerability Analysis and Automation Accelerator developer security
- GHAS Vulnerability Triage and Upgrade Recommender developer security
- Context7 Library Documentation Expert developer coding
- Structured Python Production Code Generator developer coding
- Minimax Music API Generation Agent developer creative
- Angular Standalone Directive Generator developer coding
- Pytest Unit Test Suite Generator developer coding
- Unity Architecture Specialist developer coding
- iOS App Store Compliance Auditor developer analysis
- Reusable Enterprise Website Template Architect developer software_engineering