Skip to content

Add rule: arbitrary command execution via git config override#6103

Open
ashish-cybersec wants to merge 2 commits into
SigmaHQ:masterfrom
ashish-cybersec:detect-git-lolbin-config-execution
Open

Add rule: arbitrary command execution via git config override#6103
ashish-cybersec wants to merge 2 commits into
SigmaHQ:masterfrom
ashish-cybersec:detect-git-lolbin-config-execution

Conversation

@ashish-cybersec

Copy link
Copy Markdown

Summary of the Pull Request

new: Adds a rule to detect arbitrary command execution via git.exe inline config overrides (core.sshCommand, core.fsmonitor, core.pager, core.editor, diff.external) pointed at an interpreter, and via the ext:: transport. git.exe is a documented LOLBin with no existing coverage in the repository.

Changelog

new: Potential Arbitrary Command Execution Via Git Config Override

Example Log Event

CommandLine: "git.exe" -c core.fsmonitor="cmd.exe /c calc.exe" status

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions Bot added Rules Review Needed The PR requires review Windows Pull request add/update windows related rules labels Jul 2, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome @ashish-cybersec 👋

It looks like this is your first pull request on the Sigma rules repository!

Please make sure to read the SigmaHQ conventions to make sure your contribution is adhering to best practices and has all the necessary elements in place for a successful approval.

Thanks again, and welcome to the Sigma community! 😃

If you want to engage more with the community for official support, general discussions or announcements:

👉 Join our Discord server

Updated reference URL for the advisory on Git configuration abuse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed The PR requires review Rules Windows Pull request add/update windows related rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant