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

Add new rule for forwarded exports and update doc to with new charact… #801

Merged
merged 4 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 8 additions & 2 deletions doc/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ For example, the `characteristic: nzxor` feature describes non-zeroing XOR instr
| characteristic | scope | description |
|--------------------------------------|------------------------------------|-------------|
| `characteristic: embedded pe` | file | (XOR encoded) embedded PE files. |
| `characteristic: mixed mode` | file | File contains both managed and unmanaged (native) code, often seen in .NET |
| `characteristic: forwarded export` | file | PE file that forward export. |
RonnieSalomonsen marked this conversation as resolved.
Show resolved Hide resolved
| `characteristic: mixed mode` | file | File contains both managed and unmanaged (native) code, often seen in .NET |
| `characteristic: loop` | function | Function contains a loop. |
| `characteristic: recursive call` | function | Function is recursive. |
| `characteristic: calls from` | function | There are unique calls from this function. Best used like: `count(characteristic(calls from)): 3 or more` |
Expand All @@ -328,7 +329,7 @@ For example, the `characteristic: nzxor` feature describes non-zeroing XOR instr
| `characteristic: cross section flow` | instruction, basic block, function | Function contains a call/jump to a different section. This is commonly seen in unpacking stubs. |
| `characteristic: indirect call` | instruction, basic block, function | Indirect call instruction; for example, `call edx` or `call qword ptr [rsp+78h]`. |
| `characteristic: call $+5` | instruction, basic block, function | Call just past the current instruction. |
| `characteristic: unmanaged call` | instruction, basic block, function | Function contains a call from managed code to unmanaged (native) code, often seen in .NET |
| `characteristic: unmanaged call` | instruction, basic block, function | Function contains a call from managed code to unmanaged (native) code, often seen in .NET |
RonnieSalomonsen marked this conversation as resolved.
Show resolved Hide resolved

## instruction features

Expand Down Expand Up @@ -604,6 +605,11 @@ Examples:

export: InstallA

And for forwarded exports:
RonnieSalomonsen marked this conversation as resolved.
Show resolved Hide resolved

export: "c:/windows/system32/version.GetFileVersionInfoA"
export: "vresion.GetFileVersionInfoA"

### import

The name of a routine imported from a shared library.
Expand Down
13 changes: 13 additions & 0 deletions executable/pe/export/forwarded-export.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rule:
meta:
name: forwarded export
namespace: executable/pe/export
authors:
- [email protected]
scope: file
att&ck:
- Execution::Shared Modules [T1129]
examples:
- 76FA734236DAA023444DEC26863401DC:0x18003BD32
RonnieSalomonsen marked this conversation as resolved.
Show resolved Hide resolved
features:
- characteristic: forwarded export
Loading