Audit Skills (Premium Universal Security)
Overview
Expert security auditor for AI Skills and Bundles. Performs non-intrusive static analysis to identify malicious patterns, data leaks, system stability risks, and obfuscated payloads across Windows, macOS, Linux/Unix, and Mobile (Android/iOS).
2-4 sentences is perfect.
When to Use This Skill
- Use when you need to audit AI skills and bundles for security vulnerabilities
- Use when working with cross-platform security analysis
- Use when the user asks about verifying skill legitimacy or performing security reviews
- Use when scanning for mobile threats in AI skills
How It Works
Step 1: Static Analysis
Performs non-intrusive static analysis to identify malicious patterns, data leaks, system stability risks, and obfuscated payloads.
Step 2: Platform-Specific Threat Detection
Analyzes code for platform-specific security issues across Windows, macOS, Linux/Unix, and Mobile (Android/iOS).
1. Privilege, Ownership & Metadata Manipulation
- Elevated Access:
sudo, chown, chmod, TakeOwnership, icacls, Set-ExecutionPolicy.
- Metadata Tampering:
touch -t, setfile (macOS), attrib (Windows), Set-ItemProperty, chflags.
- Risk: Unauthorized access, masking activity, or making files immutable.
2. File/Folder Locking & Resource Denial
- Patterns:
chmod 000, chattr +i (immutable), attrib +r +s +h, Deny ACEs in icacls.
- Global Actions: Locking or hiding folders in
%USERPROFILE%, /Users/, or /etc/.
- Risk: Denial of service or data locking.
3. Script Execution & Batch Invocation
- Legacy/Batch Windows:
.bat, .cmd, cmd.exe /c, vbs, cscript, wscript.
- Unix Shell:
.sh, .bash, .zsh, chmod +x followed by execution.
- PowerShell:
.ps1, powershell -ExecutionPolicy Bypass -File ....
- Hidden Flags:
-WindowStyle Hidden, -w hidden, -noprofile.
4. Dangerous Install/Uninstall & System Changes
- Windows:
msiexec /qn, choco uninstall, reg delete.
- Linux/Unix:
apt-get purge, yum remove, rm -rf /usr/bin/....
- macOS:
brew uninstall, deleting from /Applications.
- Risk: Removing security software or creating unmonitored installation paths.
5. Mobile Application & OS Security (Android/iOS)
- Android Tools:
adb shell, pm install, am start, apktool, dex2jar, keytool.
- Android Files: Manipulation of
AndroidManifest.xml (permissions), classes.dex, or strings.xml.
- iOS Tools:
xcodebuild, codesign, security find-identity, fastlane, xcrun.
- iOS Files: Manipulation of
Info.plist, Entitlements.plist, or Provisioning Profiles.
- Mobile Patterns: Jailbreak/Root detection bypasses, hardcoded API keys in mobile source, or sensitive permission requests (Camera, GPS, Contacts) in non-mobile skills.
- Risk: Malicious mobile package injection, credential theft from mobile builds, or device manipulation via ADB.
6. Information Disclosure & Network Exfiltration
- Patterns:
curl, wget, Invoke-WebRequest, Invoke-RestMethod, scp, ftp, nc, socat.
- Sensible Data:
.env, .ssh, cookies.sqlite, Keychains (macOS), Credentials (Windows), keystore (Android).
- Intranet: Scanning internal IPs or mapping local services.
7. Service, Process & Stability Manipulation
- Windows:
Stop-Service, taskkill /f, sc.exe delete.
- Unix/Mac:
kill -9, pkill, systemctl disable/stop, launchctl unload.
- Low-level: Direct disk access (
dd), firmware/BIOS calls, kernel module management.
8. Obfuscation & Persistence
- Encoding:
Base64, Hex, XOR loops, atob().
- Persistence:
reg add (Run keys), schtasks, crontab, launchctl (macOS), systemd units.
- Tubes:
curl ... | bash, iwr ... | iex.
9. Legitimacy & Scope (Universal)
- Registry Alignment: Cross-reference with
CATALOG.md.
- Structural Integrity: Does it follow the standard repo layout?
- Healthy Scope: Does a "UI Design" skill need
adb shell or sudo?
Step 3: Reporting
Generates a security report with a score (0-10), platform target identification, flagged actions, threat analysis, and mitigation recommendations.
Examples
Example 1: Security Review
"Perform a security audit on this skill bundle"
Example 2: Cross-Platform Threat Analysis
"Scan for mobile threats in this AI skill"
Best Practices
- ✅ Perform non-intrusive analysis
- ✅ Check for privilege escalation patterns
- ✅ Look for information disclosure vulnerabilities
- ✅ Analyze cross-platform threats
- ❌ Don't execute potentially malicious code during audit
- ❌ Don't modify the code being audited
- ❌ Don't ignore mobile-specific security concerns
Common Pitfalls
Problem: Executing code during audit
Solution: Stick to static analysis methods only
Problem: Missing cross-platform threats
Solution: Check for platform-specific security issues on all supported platforms
Problem: Failing to detect obfuscated payloads
Solution: Look for encoding patterns like Base64, Hex, XOR loops, and atob()
Related Skills
@security-scanner - Additional security scanning capabilities
AGI Framework Integration
Adapted for @techwavedev/agi-agent-kit
Original source: antigravity-awesome-skills
Memory-First Protocol
Cache compliance check results to avoid re-running expensive AWS API calls. Retrieve prior audit findings to track remediation progress across sessions.
# Check for prior security context before starting
python3 execution/memory_manager.py auto --query "prior security audit results for Audit Skills"
Storing Results
After completing work, store security decisions for future sessions:
python3 execution/memory_manager.py store \
--content "Audit findings: 3 critical IAM misconfigurations found and remediated" \
--type technical --project <project> \
--tags audit-skills security
Multi-Agent Collaboration
Share security findings with other agents so they avoid introducing vulnerabilities in their code changes.
python3 execution/cross_agent_context.py store \
--agent "<your-agent>" \
--action "Completed security audit — 3 critical findings fixed, compliance score 94%" \
--project <project>
Signed Audit Trail
All security findings are cryptographically signed with the agent's Ed25519 identity, providing tamper-proof audit logs for compliance reporting.
Semantic Cache for Compliance
Cache compliance check results (semantic_cache.py) to avoid redundant AWS API calls. Cache hit at similarity >0.92 returns prior results instantly.
1---2name: audit-skills3description: "Expert security auditor for AI Skills and Bundles. Performs non-intrusive static analysis to identify malicious patterns, data leaks, system stability risks, and obfuscated payloads across Windows, macOS, Linux/Unix, and Mobile (Android/iOS)."4category: security5risk: safe6source: community7date_added: "2026-03-07"8author: MAIOStudio9tags: [security, audit, skills, bundles, cross-platform]10tools: [claude, gemini, gpt, llama, mistral, etc]11---1213<!-- security-allowlist: curl-pipe-bash -->1415# Audit Skills (Premium Universal Security)1617## Overview1819Expert security auditor for AI Skills and Bundles. Performs non-intrusive static analysis to identify malicious patterns, data leaks, system stability risks, and obfuscated payloads across Windows, macOS, Linux/Unix, and Mobile (Android/iOS).202-4 sentences is perfect.2122## When to Use This Skill2324- Use when you need to audit AI skills and bundles for security vulnerabilities25- Use when working with cross-platform security analysis26- Use when the user asks about verifying skill legitimacy or performing security reviews27- Use when scanning for mobile threats in AI skills2829## How It Works3031### Step 1: Static Analysis3233Performs non-intrusive static analysis to identify malicious patterns, data leaks, system stability risks, and obfuscated payloads.3435### Step 2: Platform-Specific Threat Detection3637Analyzes code for platform-specific security issues across Windows, macOS, Linux/Unix, and Mobile (Android/iOS).3839#### 1. Privilege, Ownership & Metadata Manipulation40- **Elevated Access**: `sudo`, `chown`, `chmod`, `TakeOwnership`, `icacls`, `Set-ExecutionPolicy`.41- **Metadata Tampering**: `touch -t`, `setfile` (macOS), `attrib` (Windows), `Set-ItemProperty`, `chflags`.42- **Risk**: Unauthorized access, masking activity, or making files immutable.4344#### 2. File/Folder Locking & Resource Denial45- **Patterns**: `chmod 000`, `chattr +i` (immutable), `attrib +r +s +h`, `Deny` ACEs in `icacls`.46- **Global Actions**: Locking or hiding folders in `%USERPROFILE%`, `/Users/`, or `/etc/`.47- **Risk**: Denial of service or data locking.4849#### 3. Script Execution & Batch Invocation50- **Legacy/Batch Windows**: `.bat`, `.cmd`, `cmd.exe /c`, `vbs`, `cscript`, `wscript`.51- **Unix Shell**: `.sh`, `.bash`, `.zsh`, `chmod +x` followed by execution.52- **PowerShell**: `.ps1`, `powershell -ExecutionPolicy Bypass -File ...`.53- **Hidden Flags**: `-WindowStyle Hidden`, `-w hidden`, `-noprofile`.5455#### 4. Dangerous Install/Uninstall & System Changes56- **Windows**: `msiexec /qn`, `choco uninstall`, `reg delete`.57- **Linux/Unix**: `apt-get purge`, `yum remove`, `rm -rf /usr/bin/...`.58- **macOS**: `brew uninstall`, deleting from `/Applications`.59- **Risk**: Removing security software or creating unmonitored installation paths.6061#### 5. Mobile Application & OS Security (Android/iOS)62- **Android Tools**: `adb shell`, `pm install`, `am start`, `apktool`, `dex2jar`, `keytool`.63- **Android Files**: Manipulation of `AndroidManifest.xml` (permissions), `classes.dex`, or `strings.xml`.64- **iOS Tools**: `xcodebuild`, `codesign`, `security find-identity`, `fastlane`, `xcrun`.65- **iOS Files**: Manipulation of `Info.plist`, `Entitlements.plist`, or `Provisioning Profiles`.66- **Mobile Patterns**: Jailbreak/Root detection bypasses, hardcoded API keys in mobile source, or sensitive permission requests (Camera, GPS, Contacts) in non-mobile skills.67- **Risk**: Malicious mobile package injection, credential theft from mobile builds, or device manipulation via ADB.6869#### 6. Information Disclosure & Network Exfiltration70- **Patterns**: `curl`, `wget`, `Invoke-WebRequest`, `Invoke-RestMethod`, `scp`, `ftp`, `nc`, `socat`.71- **Sensible Data**: `.env`, `.ssh`, `cookies.sqlite`, `Keychains` (macOS), `Credentials` (Windows), `keystore` (Android).72- **Intranet**: Scanning internal IPs or mapping local services.7374#### 7. Service, Process & Stability Manipulation75- **Windows**: `Stop-Service`, `taskkill /f`, `sc.exe delete`.76- **Unix/Mac**: `kill -9`, `pkill`, `systemctl disable/stop`, `launchctl unload`.77- **Low-level**: Direct disk access (`dd`), firmware/BIOS calls, kernel module management.7879#### 8. Obfuscation & Persistence80- **Encoding**: `Base64`, `Hex`, `XOR` loops, `atob()`.81- **Persistence**: `reg add` (Run keys), `schtasks`, `crontab`, `launchctl` (macOS), `systemd` units.82- **Tubes**: `curl ... | bash`, `iwr ... | iex`.8384#### 9. Legitimacy & Scope (Universal)85- **Registry Alignment**: Cross-reference with `CATALOG.md`.86- **Structural Integrity**: Does it follow the standard repo layout?87- **Healthy Scope**: Does a "UI Design" skill need `adb shell` or `sudo`?8889### Step 3: Reporting9091Generates a security report with a score (0-10), platform target identification, flagged actions, threat analysis, and mitigation recommendations.9293## Examples9495### Example 1: Security Review9697```markdown98"Perform a security audit on this skill bundle"99```100101### Example 2: Cross-Platform Threat Analysis102103```markdown104"Scan for mobile threats in this AI skill"105```106107## Best Practices108109- ✅ Perform non-intrusive analysis110- ✅ Check for privilege escalation patterns111- ✅ Look for information disclosure vulnerabilities112- ✅ Analyze cross-platform threats113- ❌ Don't execute potentially malicious code during audit114- ❌ Don't modify the code being audited115- ❌ Don't ignore mobile-specific security concerns116117## Common Pitfalls118119- **Problem:** Executing code during audit120 **Solution:** Stick to static analysis methods only121122- **Problem:** Missing cross-platform threats123 **Solution:** Check for platform-specific security issues on all supported platforms124125- **Problem:** Failing to detect obfuscated payloads126 **Solution:** Look for encoding patterns like Base64, Hex, XOR loops, and atob()127128## Related Skills129130- `@security-scanner` - Additional security scanning capabilities131132---133134<!-- AGI-INTEGRATION-START -->135136## AGI Framework Integration137138> **Adapted for [@techwavedev/agi-agent-kit](https://www.npmjs.com/package/@techwavedev/agi-agent-kit)**139> Original source: [antigravity-awesome-skills](https://github.com/sickn33/antigravity-awesome-skills)140141### Memory-First Protocol142143Cache compliance check results to avoid re-running expensive AWS API calls. Retrieve prior audit findings to track remediation progress across sessions.144145```bash146# Check for prior security context before starting147python3 execution/memory_manager.py auto --query "prior security audit results for Audit Skills"148```149150### Storing Results151152After completing work, store security decisions for future sessions:153154```bash155python3 execution/memory_manager.py store \156 --content "Audit findings: 3 critical IAM misconfigurations found and remediated" \157 --type technical --project <project> \158 --tags audit-skills security159```160161### Multi-Agent Collaboration162163Share security findings with other agents so they avoid introducing vulnerabilities in their code changes.164165```bash166python3 execution/cross_agent_context.py store \167 --agent "<your-agent>" \168 --action "Completed security audit — 3 critical findings fixed, compliance score 94%" \169 --project <project>170```171172### Signed Audit Trail173174All security findings are cryptographically signed with the agent's Ed25519 identity, providing tamper-proof audit logs for compliance reporting.175176### Semantic Cache for Compliance177178Cache compliance check results (`semantic_cache.py`) to avoid redundant AWS API calls. Cache hit at similarity >0.92 returns prior results instantly.179180<!-- AGI-INTEGRATION-END -->