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

Improve browser stealer & add SQLite lib detection #757

Merged
merged 7 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,29 @@ rule:
namespace: collection/browser
authors:
- "@_re_fox"
scope: function
- [email protected]
scope: file
att&ck:
- Credential Access::Credentials from Password Stores::Credentials from Web Browsers [T1555.003]
examples:
- 2fd45662e3d0ec0077ea2fa66b6378f0:0x6000039
- 54390bda109aab7fc006b8b4ead5b6c2:0x1006E8D3
features:
- and:
- or:
- string: /\\(Edge|Chrome|Chromium|Brave\-Browser|YandexBrowser|Kometa|Orbitum|Dragon|Torch|Amigo)\\User Data\\Default\\Login Data/
- string: /\\Opera Software\\Opera Stable\\Login Data/
- string: /\\+(Edge|Chrome|Chromium|Brave\-Browser|YandexBrowser|Kometa|Orbitum|Dragon|Torch|Amigo)\\+User Data\\+Default(\\+Network)?\\+(Cookies|Login Data)/i
- string: /\\Opera Software\\Opera Stable\\(Login Data|Cookies)/i
- or:
- string: /SELECT [(date_created|username_element|password_element|origin_url|signon_realm|action_url|username_value|password_value)\s+,]+ FROM logins/i
- string: /SELECT ((date_created|username_element|password_element|origin_url|signon_realm|action_url|username_value|password_value),?\s?)+ FROM logins/i
- string: /SELECT ((creation_utc|encrypted_value),?\s?)+ FROM cookies/i
- 2 or more:
- string: /date_created/i
- string: /username_element/i
- string: /username_value/i
- string: /password_element/i
- string: /origin_url/i
- string: /signon_realm/i
- string: /action_url/i
- string: /password_value/i
- substring: "date_created"
- substring: "encrypted_value"
- substring: "creation_utc"
- substring: "username_element"
- substring: "username_value"
- substring: "password_element"
- substring: "origin_url"
- substring: "signon_realm"
- substring: "action_url"
- substring: "password_value"
4 changes: 3 additions & 1 deletion collection/browser/gather-firefox-profile-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ rule:
namespace: collection/browser
authors:
- "@_re_fox"
- [email protected]
scope: function
att&ck:
- Credential Access::Credentials from Password Stores::Credentials from Web Browsers [T1555.003]
examples:
- 7204e3efc2434012e13ca939db0d0b02:0x4073c0
- 54390bda109aab7fc006b8b4ead5b6c2:0x1006e58b
features:
- and:
- 2 or more:
- string: /\\Mozilla\\Firefox\\profiles(\.ini)?/i
- string: /\\signons\.sqlite/i
- string: /\\(signons|cookies)\.sqlite/i
- string: /SELECT\s+[a-z,\s]{5,}FROM moz_(logins|cookies)/i
- string: /FROM moz_(logins|cookies)/i
- substring: "WHERE moz_cookies.host LIKE"
Expand Down
13 changes: 13 additions & 0 deletions linking/static/sqlite3/linked-against-cppsqlite3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rule:
meta:
name: linked against CppSQLite3
namespace: linking/static/sqlite3
authors:
- [email protected]
scope: file
examples:
- 253309d8b3675d3cc61d4bf23aa15d4b
features:
- and:
- substring: "CppSQLite3DB"
- substring: "CppSQLite3Query"
20 changes: 20 additions & 0 deletions linking/static/sqlite3/linked-against-sqlite3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
rule:
meta:
name: linked against sqlite3
namespace: linking/static/sqlite3
authors:
- [email protected]
scope: file
examples:
- 253309d8b3675d3cc61d4bf23aa15d4b
features:
- or:
- 3 or more:
- string: "database corruption"
- string: "SQLITE_OK"
- string: "SQLite format 3"
- string: "sqlite3_extension_init"
- substring: "cannot INSERT into generated column"
- substring: "UPSERT not implemented for virtual table"
- substring: "sqlite3_get_table()"
- substring: "qualified table names are not allowed on"
Loading