Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Modify Directory Permissions (Linux)" #2669

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions atomics/T1490/T1490.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,16 @@ atomic_tests:
command: 'vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%'
name: powershell
elevation_required: true

- name: "Modify Directory Permissions (Linux)"
auto_generated_guid: "cbddf7ab-a93b-4257-a0a8-45a46fbd68a7"
description: |
Modify permissions of a directory on a Linux system. This test alters the security settings of the directory, potentially impacting access to its contents. It should be conducted only in a controlled environment. The executor must have administrative privileges or root access to modify directory permissions. Note that this test does not include a cleanup command; thus, the changes will persist after execution. Ensure that you have a backup or a recovery plan in place before running this test. Running this test on a production system or critical environment is not recommended without proper precautions.
supported_platforms:
- linux
executor:
name: "bash_shell"
elevation_required: true
command: |
# Example command to create a temporary directory '/tmp/my_directory' and give read and write permissions to the owner
mkdir -p /tmp/my_directory && chmod u+rw /tmp/my_directory
Loading