cwe-732-improper-file-permissions
OfficialSecure Java file permissions.
AuthorDevelopersCoffee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the critical security vulnerability of Improper File Permissions in Java applications, ensuring sensitive files and directories are not accessible beyond authorized users.
Core Features & Use Cases
- Vulnerability Identification: Detects patterns of overly permissive file operations (e.g., world-readable/writable, 777 permissions).
- Deterministic Remediation: Provides exact, secure code implementations using Java's
java.nio.fileAPI to set owner-only permissions (600 for files, 700 for directories). - Use Case: When a SAST tool flags a Java application for CWE-732, this Skill can be used to automatically refactor the vulnerable code sections to enforce strict, owner-only file access controls.
Quick Start
Use the cwe-732-improper-file-permissions skill to secure the file permissions for '/app/config/secrets.conf'.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cwe-732-improper-file-permissions Download link: https://github.com/DevelopersCoffee/java-cwe-security-skills/archive/main.zip#cwe-732-improper-file-permissions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.