4312d8c958
* initial commit * addressing flake errors * added apm to _get_packagted_integrations logic * addressed flake errors * adjusted integration schema and updated rules to be a list * updated several rules and removed a unit test * updated rules with logs-* only index patterns * Update tests/test_all_rules.py Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com> * addressed flake errors * integration is none is windows, endpoint or apm * adding rules with accepted incoming changes from main * fixed tag and tactic alignment errors from unit testing * adjusted unit testing logic for integration tags; added more exclusion rules * adjusted test_integration logic to be rule resistent and skip if -8.3 * adjusted comments for unit test skip * fixed merge conflicts from main * changing test_integration_tag to remove logic for rule version comparisons * added integration tag to new rule * adjusted rules updated_date value * ignore guided onboarding rule in unit tests * added integration tag to new rule Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[metadata]
|
|
creation_date = "2020/02/18"
|
|
integration = ["apm"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2022/12/14"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
This is an example of how to detect an unwanted web client user agent. This search matches the user agent for sqlmap
|
|
1.3.11, which is a popular FOSS tool for testing web applications for SQL injection vulnerabilities.
|
|
"""
|
|
false_positives = [
|
|
"""
|
|
This rule does not indicate that a SQL injection attack occurred, only that the `sqlmap` tool was used. Security
|
|
scans and tests may result in these errors. If the source is not an authorized security tester, this is generally
|
|
suspicious or malicious activity.
|
|
""",
|
|
]
|
|
index = ["apm-*-transaction*", "traces-apm*"]
|
|
language = "kuery"
|
|
license = "Elastic License v2"
|
|
name = "Web Application Suspicious Activity: sqlmap User Agent"
|
|
references = ["http://sqlmap.org/"]
|
|
risk_score = 47
|
|
rule_id = "d49cc73f-7a16-4def-89ce-9fc7127d7820"
|
|
severity = "medium"
|
|
tags = ["Elastic", "APM"]
|
|
timestamp_override = "event.ingested"
|
|
type = "query"
|
|
|
|
query = '''
|
|
user_agent.original:"sqlmap/1.3.11#stable (http://sqlmap.org)"
|
|
'''
|
|
|