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

are "global stackstrings" seen in the wild? #37

Open
1 of 2 tasks
williballenthin opened this issue Apr 8, 2016 · 3 comments
Open
1 of 2 tasks

are "global stackstrings" seen in the wild? #37

williballenthin opened this issue Apr 8, 2016 · 3 comments
Labels

Comments

@williballenthin
Copy link
Collaborator

williballenthin commented Apr 8, 2016

malware that uses a stackstrings-like technique to initialize a global string will not be detected by the stackstrings extractor, since we currently inspect only the active stack frame. the decoding routine plugins also probably won't consider it suspicious.

so, is this something that's seen in the wild and worth supporting? leave examples of sample with this behavior as comments to this issue.

jay's script supports this type of decoding, since he heavily uses the vivisect emulator writelog to reconstruct strings. we could also enable the writelog and inspect memory regions written during a function's execution. part of me worries about performance, but i don't think it will be serious enough to matter.

todo:

  • dev/find test case, then
  • track global stackstrings
@williballenthin williballenthin changed the title potential issue: "global stackstrings" won't be detected are "global stackstrings" seen in the wild? Apr 8, 2016
@williballenthin
Copy link
Collaborator Author

need to dev a test case, and then can tackle the feature

@williballenthin
Copy link
Collaborator Author

yes. example attached.

a single byte XOR routine is inlined by the compiler into a constant number of DWORD and BYTE-wise XOR operations against global data. this is difficult to detect (no loops) using the "floss" algorithms, but global stackstrings would catch this.

keylogger-s-new

@williballenthin
Copy link
Collaborator Author

williballenthin commented Jul 28, 2021

91b08896fbda9edb8b6f93a6bc811ec6

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant