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 HTTP User-Agent rule #702

Merged
merged 1 commit into from
Feb 20, 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
19 changes: 19 additions & 0 deletions communication/http/reference-http-user-agent-string.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# generated using capa explorer for IDA Pro
rule:
meta:
name: reference HTTP User-Agent string
namespace: communication/http
authors:
- "@mr-tz"
scope: function
references:
- https://www.useragents.me/
- https://www.whatismybrowser.com/guides/the-latest-user-agent/
examples:
- 0796F1C1EA0A142FC1EB7109A44C86CB:0x4043F0
features:
- or:
- substring: "Mozilla/5.0"
- substring: "like Gecko"
- api: urlmon.ObtainUserAgentString
- property/read: System.Net.HttpWebRequest::UserAgent
2 changes: 1 addition & 1 deletion doc/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ Examples:

```yaml
- string: "Firefox 64.0"
- string: "Hostname:\t\t\t%s\nIP adress:\t\t\t%s\nOS version:\t\t\t%s\n"
- string: "Hostname:\t\t\t%s\nIP address:\t\t\t%s\nOS version:\t\t\t%s\n"
- string: "This program cannot be run in DOS mode."
description: MS-DOS stub message
- string: "{3E5FC7F9-9A51-4367-9063-A120244FBEC7}"
Expand Down