CYBER LIBRARY
Explore the bootcamp
Detection & responseIntermediate

File and Directory Permissions Modification

Permission modification changes file or directory access rules to enable unauthorized activity.

3 min readUpdated 12 Oct 202614 connections
Markdown

Access rules can be changed to enable later actions

File and directory permission modification changes who can read, write, or execute relevant resources. Legitimate installation, administration, and collaboration depend on these changes. Unauthorized modification can expose sensitive data, allow replacement of trusted code, or make later activity possible.

The security meaning depends on the object, old and new permissions, modifying identity, and intended use. A broad-sounding permission label is not enough; inheritance, ownership, groups, and platform semantics can affect the actual result.

A protected application directory becomes writable

In a fictional environment, a directory containing a service executable receives new write access for an unrelated group. The analyst preserves the current permissions, retrieves prior state where available, and checks the change event and approving workflow.

A deployment process may require temporary access, but the actual group, scope, and duration should match the approved purpose. The team also examines whether files changed after the permission update and whether the service later executed them.

The permission change establishes a modified access rule. It does not alone prove that a file was replaced or that the replacement executed. Those stages need file integrity and runtime evidence.

Review effective access

An identity's effective permission can come from several groups or inherited rules. Removing one direct assignment may leave the same access available through another route. Use the platform's actual authorization model when verifying remediation.

Linux file permissions explains one operating-system model, while other platforms use different structures. Least privilege provides the principle of limiting access to the task rather than granting broad rights for convenience.

Changes to code locations can support Hijack Execution Flow or Compromise Host Software Binary, but map those behaviors only when the evidence establishes their additional steps. Permission exposure and actual code modification are different findings.

Restore access without losing business function

Preserve relevant configuration and change records, restore the intended permissions through an approved process, and review the authority that made the change. Coordinate with the owner because overly restrictive rollback can break service accounts or deployment workflows.

Verify both security and operation: unauthorized writing should fail, while the legitimate service should continue functioning. Document any temporary exception and assign a review or expiration owner.

For practice, compare a documented temporary deployment permission with an unexplained broad write grant. Identify the approval, effective-access, file-change, and execution records needed to distinguish them. Incident reporting and handover should separate the access opportunity from confirmed use, while Incident response coordinates any wider cleanup.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

MITRE ATT&CK T1222: File and Directory Permissions Modification
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

14 notes · 44 connections
100%
File and Directory Permissions Modification · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (14)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.