fix: add metadata to sftp command in ssh_example.yml#233
Open
DC925928496 wants to merge 1 commit into
Open
Conversation
Add MITRE ATT&CK mapping for the sftp command that uploads linpeas. The sftp command was the only one in the playbook missing metadata, which broke consistency with all other commands. - Add description documenting the file upload operation - Map to T1105 (Ingress Tool Transfer) technique - Map to Execution tactic Fixes ait-testbed#232
whotwagner
approved these changes
May 21, 2026
| # | ||
| vars: | ||
| METASPLOITABLE: 192.168.0.146 | ||
| PASSWDLIST: /snap/seclists/current/Passwords/Common-Credentials/darkweb2017_top-1000.txt |
Contributor
There was a problem hiding this comment.
I would prefer to keep /usr/share. Not only because in our attackbed we download seclists with an ansible role to that directory, but also because this path is available on many distributions and not only on distributions that support snap
whotwagner
requested changes
May 26, 2026
| # | ||
| vars: | ||
| METASPLOITABLE: 192.168.0.146 | ||
| PASSWDLIST: /snap/seclists/current/Passwords/Common-Credentials/darkweb2017_top-1000.txt |
Contributor
There was a problem hiding this comment.
Suggested change
| PASSWDLIST: /usr/share/seclists/Passwords/darkweb2017-top1000.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
sftpcommand inexamples/ssh_example.yml(line ~77) was the only command in the playbook missing ametadatablock. All other commands in the playbook have MITRE ATT&CK mappings, and this inconsistency could cause issues for users/tools that rely on metadata.Related issue: #232
Fix
Added metadata to the sftp command that uploads linpeas.sh:
MITRE ATT&CK mapping
Related Issues
Fixes #232