Skip to content

Commit

Permalink
Fix t1138path (redcanaryco#513)
Browse files Browse the repository at this point in the history
* Updating the path and description

* Generate docs from job=validate_atomics_generate_docs branch=fix-t1138path
  • Loading branch information
caseysmithrc authored and Michael Haag committed Jun 14, 2019
1 parent 587dbb3 commit 5f6ad32
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 17 deletions.
14 changes: 12 additions & 2 deletions atomics/T1138/T1138.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ To keep shims secure, Windows designed them to run in user mode so they cannot m
<br/>

## Atomic Test #1 - Application Shim Installation
This test injects a DLL into a custom application
To test injecting DLL into a custom application
you need to copy AtomicShim.dll Into C:\Tools
As well as Compile the custom app.
We believe observing the shim install is a good
place to start.

**Supported Platforms:** Windows


#### Inputs
| Name | Description | Type | Default Value |
|------|-------------|------|---------------|
| file_path | Path to the shim databaase file | String | C:\AtomicRedTeam\atomics\T1138\src\AtomicShimx86.sdb|

#### Run it with `command_prompt`!
```
sdbinst.exe AtomicShimx86.sdb
sdbinst.exe #{file_path}
sdbinst.exe -u #{file_path}
```
<br/>
15 changes: 12 additions & 3 deletions atomics/T1138/T1138.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ display_name: Application Shimming
atomic_tests:
- name: Application Shim Installation
description: |
This test injects a DLL into a custom application
To test injecting DLL into a custom application
you need to copy AtomicShim.dll Into C:\Tools
As well as Compile the custom app.
We believe observing the shim install is a good
place to start.
supported_platforms:
- windows

input_arguments:
file_path:
description: Path to the shim databaase file
type: String
default: C:\AtomicRedTeam\atomics\T1138\src\AtomicShimx86.sdb
executor:
name: command_prompt
command: |
sdbinst.exe AtomicShimx86.sdb
sdbinst.exe #{file_path}
sdbinst.exe -u #{file_path}
40 changes: 28 additions & 12 deletions atomics/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -640,16 +640,24 @@ persistence:
identifier: T1138
atomic_tests:
- name: Application Shim Installation
description: 'This test injects a DLL into a custom application

'
description: |
To test injecting DLL into a custom application
you need to copy AtomicShim.dll Into C:\Tools
As well as Compile the custom app.
We believe observing the shim install is a good
place to start.
supported_platforms:
- windows
input_arguments:
file_path:
description: Path to the shim databaase file
type: String
default: C:\AtomicRedTeam\atomics\T1138\src\AtomicShimx86.sdb
executor:
name: command_prompt
command: 'sdbinst.exe AtomicShimx86.sdb

'
command: |
sdbinst.exe #{file_path}
sdbinst.exe -u #{file_path}
T1197:
technique:
external_references:
Expand Down Expand Up @@ -10366,16 +10374,24 @@ privilege-escalation:
identifier: T1138
atomic_tests:
- name: Application Shim Installation
description: 'This test injects a DLL into a custom application

'
description: |
To test injecting DLL into a custom application
you need to copy AtomicShim.dll Into C:\Tools
As well as Compile the custom app.
We believe observing the shim install is a good
place to start.
supported_platforms:
- windows
input_arguments:
file_path:
description: Path to the shim databaase file
type: String
default: C:\AtomicRedTeam\atomics\T1138\src\AtomicShimx86.sdb
executor:
name: command_prompt
command: 'sdbinst.exe AtomicShimx86.sdb

'
command: |
sdbinst.exe #{file_path}
sdbinst.exe -u #{file_path}
T1088:
technique:
external_references:
Expand Down

0 comments on commit 5f6ad32

Please sign in to comment.