Works with the AI Agents you already use
File Permission Auditor
Identify and remediate insecure file permissions and exposed secrets across Linux and Windows filesystems.
$2.99
File Permission Auditor
Example session with this skill installed
Audit the permissions for /var/www/html on this Linux server and flag any files that are world-writable or contain secrets with loose permissions.
- Read your context and instructions
- Compiled the file permission auditor
- Generated the document
I have scanned the /var/www/html directory. I found several high-risk permission sets, including a .env file readable by all users and multiple PHP scripts with world-write bits enabled.
Permission Audit Report
| Severity | Path | Current Mode | Issue | Suggested Fix |
|---|---|---|---|---|
| CRITICAL | /var/www/html/.env | 0644 | Secret file is world-readable | chmod 600 /var/www/html/.env |
| HIGH | /var/www/html/uploads/ | 0777 | World-writable without sticky bit | chmod 1755 /var/www/html/uploads/ |
| HIGH | /var/www/html/config.php | 0666 | Configuration file is world-writable | chmod 644 /var/www/html/config.php |
| MEDIUM | /var/www/html/assets/logo.png | 0777 | Asset file has unnecessary execute bit | chmod 644 /var/www/html/assets/logo.png |
| LOW | /var/www/html/old_backup.sql | 0644 | Database dump owned by unknown UID 1005 | chown www-data:www-data /var/www/html/old_backup.sql |
Next steps
- Review the suggested fixes and run them using
sudoto apply changes. - Check if UID 1005 corresponds to a deleted developer account and reassign all related assets.
- Schedule a follow-up scan for the
/etc/nginx/directory to ensure web server configs are secured.
logo.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Loose file permissions are a silent security debt that leads to data leaks and privilege escalation. This skill identifies files and directories with excessive access rights across Linux and Windows environments, providing immediate remediation commands.
What it does
- Scans Linux filesystems to identify world-writable files, loose home directory modes, and SUID/SGID binaries.
- Audits Windows ACLs by parsing
icaclsoutput to flag broad group assignments like "Everyone" or "Authenticated Users." - Detects exposed secrets such as private keys,
.envfiles, and database backups with public read access. - Identifies orphaned SIDs and files owned by deleted accounts that still retain active permissions.
- Generates fix scripts including exact
chmod,chown, oricaclscommands to lock down the environment.
How it works
- Target selection: Provide a Linux directory path or a pre-generated Windows
icaclstext report. - Analysis: The agent scans for permission patterns that violate security best practices, such as sticky-bit omissions or direct user assignments.
- Filtering: Use the
--approvedflag to whitelist specific service accounts or groups that require high-level access. - Report generation: Review the prioritized list of vulnerabilities sorted by severity.
Frameworks & tools
This skill utilizes Python for log parsing and logic, leveraging native OS utilities like find, stat, and icacls for data collection.
Why this beats prompting it yourself
Generic prompts often miss edge cases like the sticky-bit on world-writable directories or the nuances of Windows inherited permissions. This skill uses specific logic to differentiate between system-required SUID files and dangerous user-created ones.
Use cases
- Audit preparation: Run before a compliance review to clear common findings.
- Data leak investigation: Trace how a sensitive file became accessible to unauthorized users.
- Server hardening: Clean up permissions on a new application deployment or web server root.
Known limitations
Does not follow symlinks or automatically cross filesystem boundaries on Linux. Requires root/administrator privileges to read certain metadata.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Requires root or administrator privileges for full visibility. Does not follow symlinks or cross filesystem boundaries automatically. Windows audits require pre-generated icacls text files.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago