acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute
$ npx -y skills add Mikaru0Mystic/sectinel --skill configuring-identity-aware-proxy-with-google-iap --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/configuring-identity-aware-proxy-with-google-iapContext preview
The summary Claude sees to decide when to auto-load this skill.
Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute
name: configuring-identity-aware-proxy-with-google-iap description: 'Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute Engine, App Engine, Cloud Run, and GKE services using access levels, context-aware policies, and programmatic access with service accounts. ' domain: cybersecurity subdomain: zero-trust-architecture tags: - google-iap - identity-aware-proxy - gcp - zero-trust - access-context-manager - cloud-run - app-engine version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - PR.AA-01 - PR.AA-05 - PR.IR-01 - GV.PO-01
**Do not use** for non-HTTP applications that cannot be placed behind an HTTPS load balancer, for public-facing applications that need unauthenticated access, or when applications handle their own authentication and IAP would conflict with existing auth flows.
Configure IAP for different GCP compute platforms.
# Enable required APIs gcloud services enable iap.googleapis.com gcloud services enable accesscontextmanager.googleapis.com # Create OAuth consent screen gcloud iap oauth-brands create \ --application_title="Internal Applications" \ --support_email=security@company.com # Create OAuth client gcloud iap oauth-clients create \ projects/PROJECT_ID/brands/BRAND_ID \ --display_name="IAP Web Client" # === Enable IAP on Compute Engine Backend Service === gcloud compute backend-services update my-backend-service \ --iap=enabled,oauth2-client-id=CLIENT_ID,oauth2-client-secret=CLIENT_SECRET \ --global # === Enable IAP on App Engine === gcloud iap web enable \ --resource-type=app-engine \ --oauth2-client-id=CLIENT_ID \ --oauth2-client-secret=CLIENT_SECRET # === Enable IAP on Cloud Run === # First grant IAP service account the Cloud Run Invoker role gcloud run services add-iam-policy-binding my-service \ --member="serviceAccount:service-PROJECT_NUM@gcp-sa-iap.iam.gserviceaccount.com" \ --role="roles/run.invoker" \ --region=us-central1 # Enable IAP on the Cloud Run backend service gcloud compute backend-services update my-cloud-run-backend \ --iap=enabled,oauth2-client-id=CLIENT_ID,oauth2-client-secret=CLIENT_SECRET \ --global # === Enable IAP TCP Forwarding for SSH/RDP === # No load balancer needed - uses IAP tunnel gcloud compute instances add-iam-policy-binding my-vm \ --member="group:developers@company.com" \ --role="roles/iap.tunnelResourceAccessor" \ --zone=us-central1-a # SSH through IAP tunnel gcloud compute ssh my-vm --zone=us-central1-a --tunnel-through-iap # RDP through IAP tunnel gcloud compute start-iap-tunnel my-windows-vm 3389 \ --local-host-port=localhost:3390 \ --zone=us-central1-a
Grant access to specific users and groups with optional access level conditions.
# Grant basic access to a group
gcloud iap web add-iam-policy-binding \
--resource-type=backend-services \
--service=my-backend-service \
--member="group:engineering@company.com" \
--role="roles/iap.httpsResourceAccessor"
# Grant access with access level condition
gcloud iap web add-iam-policy-binding \
--resource-type=backend-services \
--service=finance-app \
--member="group:finance@company.com" \
--role="roles/iap.httpsResourceAccessor" \
--condition='expression=request.auth.access_levels.exists(x, x == "accessPolicies/POLICY_ID/accessLevels/corporate-device"),title=RequireCorporateDevice,description=Requires managed corporate device'
# Grant access only during business hours
gcloud iap web add-iam-policy-binding \
--resource-type=backend-services \
--service=admin-console \
--member="group:admins@company.com" \
--role="roles/iap.httpsResourceAccessor" \
--condition='expression=request.time.getHours("America/New_York") >= 8 && request.time.getHours("America/New_York") <= 18 && request.time.getDayOfWeek("America/New_York") >= 1 && request.time.getDayOfWeek("America/New_York") <= 5,title=BusinessHoursOnly'
# Grant access to a specific URL path
gcloud iap web add-iam-policy-binding \
--resource-type=backend-services \
--service=internal-api \
--member="group:api-consumers@company.com" \
--role="roles/iap.httpsResourceAccessor" \
--condition='expression=request.path.startsWith("/api/v2/"),title=APIv2Access'Define context-based access requirements using device attributes and network conditions.
# Create access level requiring encrypted corporate device
cat > managed-device.yaml << 'EOF'
- devicePolicy:
allowedEncryptionStatuses:
- ENCRYPTED
osConstraints:
- osType: DESKTOP_WINDOWS
minimumVersion: "10.0.19045"
- osType: DESKTOP_MAC
minimumVersion: "14.0"
- osType: DESKTOP_CHROME_OS
requireScreenlock: true
requireAdminApproval: true
allowedDeviceManagementLevels:
- ADVANCED
EOF
gcloud access-context-manager levels create managed-device \
--policy=POLICY_ID \
--title="MaOpen-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Repo: Mikaru0Mystic/sectinel
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative