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

Reorganization #2621

Merged
merged 2 commits into from
Nov 28, 2023
Merged
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
48 changes: 31 additions & 17 deletions atomics/T1555.001/T1555.001.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
attack_technique: T1555.001
display_name: 'Credentials from Password Stores: Keychain'
atomic_tests:
- name: Keychain
auto_generated_guid: 1864fdec-ff86-4452-8c30-f12507582a93
description: |
### Keychain Files

~/Library/Keychains/
- name: Keychain Dump
auto_generated_guid: 88e1fa00-bf63-4e5b-a3e1-e2ea51c8cca6
description: |-
This command will dump keychain credential information from login.keychain.
Source: https://www.loobins.io/binaries/security/

### Keychain File path
~/Library/Keychains/
/Library/Keychains/

/Network/Library/Keychains/

[Security Reference](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/security.1.html)

supported_platforms:
- macos
executor:
command: sudo security dump-keychain -d login.keychain
name: sh
elevation_required: true

[Keychain dumper](https://github.com/juuso/keychaindump)
- name: Export Certificate Item(s)
auto_generated_guid: 1864fdec-ff86-4452-8c30-f12507582a93
description: |
This command finds all certificate items and sends the output to local file in pem format.
supported_platforms:
- macos
input_arguments:
Expand All @@ -24,19 +34,23 @@ atomic_tests:
default: /tmp/certs.pem
executor:
command: |
security -h
security find-certificate -a -p > #{cert_export}
security import #{cert_export} -k
cleanup_command: 'rm #{cert_export}'
name: sh
elevation_required: false

- name: Keychain Dump
auto_generated_guid: 88e1fa00-bf63-4e5b-a3e1-e2ea51c8cca6
description: |-
This command will dump keychain credential information from login.keychain.
Source: https://www.loobins.io/binaries/security/
- name: Import Certificate Item(s) into Keychain
description: |
This command will import a certificate pem file into a keychain.
supported_platforms:
- macos
input_arguments:
cert_export:
description: Specify the path of the pem certificate file to import.
type: path
default: /tmp/certs.pem
executor:
command: sudo security dump-keychain -d login.keychain
command: |
security import #{cert_export} -k
name: sh
elevation_required: true
elevation_required: false