Skip to content

Add PermitLocalCommand technique to ssh.exe (#526) - #532

Open
DevCop95 wants to merge 1 commit into
LOLBAS-Project:masterfrom
DevCop95:feat/ssh-permitlocalcommand
Open

DevCop95 wants to merge 1 commit into
LOLBAS-Project:masterfrom
DevCop95:feat/ssh-permitlocalcommand

Conversation

@DevCop95

Copy link
Copy Markdown
Contributor

Closes #526

Summary

Adds the PermitLocalCommand=yes and LocalCommand indirect execution technique to ssh.exe (T1202), as reported by @wdormann in issue #526 based on Microsoft Threat Intelligence's analysis of the Star Blizzard (Redflick campaign).

What was added

  • Commands:
    • ssh.exe -o "StrictHostKeyChecking=no" -o "PermitLocalCommand=yes" -o "LocalCommand=cmd.exe /q /c {CMD}" -q user@host
    • Category: Execute
    • MitreID: T1202
  • Detection:
    • Process creation monitoring for PermitLocalCommand and LocalCommand command-line flags.
    • Telemetry for unexpected child processes spawned by ssh.exe (cmd.exe, powershell.exe, msiexec.exe).
  • Resources:
    • Official Microsoft Threat Intelligence publication on Star Blizzard / Redflick malware delivery.
  • Acknowledgements:

Validation

  • Validated locally against the project's official Pydantic harness (.github/workflows/validation.py):
    SUCCESS: Ssh.yml is 100% valid according to LOLBAS MainModel schema!
    

@DevCop95
DevCop95 requested a review from a team as a code owner October 11, 2026 06:22
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.

Add PermitLocalCommand=yes technique to ssh.exe

1 participant