cwe-732-improper-file-permissions

Official

Secure 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.file API 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.