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

feat: support deleting files in disk injects #198

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

glattercj
Copy link
Collaborator

@glattercj glattercj commented Nov 22, 2024

Supports adding a keyword to the src field of a file injection to delete the file/directory in a disk image. E.g.

      injections:
        - src: TERMINATED
          dst: /ProgramData/Microsoft/Windows Defender

Depends on sandia-minimega/minimega#1548

Copy link
Collaborator

@activeshadow activeshadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

We'll need to update the minimega branches that get used in phenix to build the minimega image before merging this since the required minimega changes aren't merged in yet.

@glattercj
Copy link
Collaborator Author

glattercj commented Jan 20, 2025

@activeshadow Switched to using deletions array and delete files ... keyword in the minimega script template per matching updated minimega PR. Ex:

      deletions:
        - path: /foo/bar/baz.zip
        - path: /ProgramData/Microsoft/Windows Defender
          description: Remove (and disable) Windows Defender

Still depends on sandia-minimega/minimega#1548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants