Skip to content

DNS Query to Wildcard DNS Services#5915

Open
Mahir-Ali-khan wants to merge 20 commits into
SigmaHQ:masterfrom
Mahir-Ali-khan:master
Open

DNS Query to Wildcard DNS Services#5915
Mahir-Ali-khan wants to merge 20 commits into
SigmaHQ:masterfrom
Mahir-Ali-khan:master

Conversation

@Mahir-Ali-khan

@Mahir-Ali-khan Mahir-Ali-khan commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

This sigma rule is created to detect the abuse of domain service, when queried with a hostname with an embedded IP address, returns that IP address

Detects DNS queries to public wildcard DNS services that resolve subdomains to IP addresses. These services can be abused by attackers for command and control, tunneling, phishing.

Changelog

new: DNS Query to Wildcard DNS Services - Network
new: DNS Query to Wildcard DNS Services - Windows

Example Log Event

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions Bot added Rules Review Needed The PR requires review Windows Pull request add/update windows related rules Threat-Hunting labels Mar 24, 2026

@Mahir-Ali-khan Mahir-Ali-khan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

net_dns_wildcard_dns_service

@Mahir-Ali-khan Mahir-Ali-khan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed duplicate tag

@Mahir-Ali-khan

Copy link
Copy Markdown
Contributor Author

hello team,

did we got time to check this Sigma

@swachchhanda000 swachchhanda000 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Mahir-Ali-khan,

Thanks for the contribution. Before we can proceed with the review, there are a few things that need to be addressed:

  1. win_BCP_utility_execution.yml - Please remove this. It's a duplicate of the existing rule Data Export From MSSQL Table Via BCP.EXE (c615d676-f655-46b9-b913-78729021e5d7).

  2. dns_query_win_dnslog_pw.yml - Instead of a new rule, it might sense to add these domains to the existing DNS Query to External Service Interaction Domains rule (aff715fa-4dd5-497a-8db3-910bea555566). Remove both copies of the new file (you have a duplicate under rules/windows/rules/ as well).

  3. net_dns_wildcard_dns_service.yml - This one has potential, but it has multiple convention issues (title, tag casing, date format, field names, etc.). Please study existing rules in the repo, especially similar DNS rules like net_dns_external_service_interaction_domains.yml - and follow their structure closely. Also review the SigmaHQ conventions (filename, title, and rule conventions) to align your rule with the expected format.

  4. Make sure all pipelines are green before requesting review.

Please address all of these issues. We are happy to re-review once the updates are in.

@swachchhanda000 swachchhanda000 added Work In Progress Some changes are needed Author Input Required changes the require information from original author of the rules labels Apr 10, 2026

@Mahir-Ali-khan Mahir-Ali-khan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted rule

@Mahir-Ali-khan

Copy link
Copy Markdown
Contributor Author

necessary changes made kindly check once

@Mahir-Ali-khan Mahir-Ali-khan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes made

@swachchhanda000 swachchhanda000 removed Work In Progress Some changes are needed Author Input Required changes the require information from original author of the rules labels Apr 14, 2026
@swachchhanda000 swachchhanda000 changed the title net_dns_wildcard_dns_service DNS Query to Wildcard DNS Services Apr 14, 2026
@swachchhanda000 swachchhanda000 added this to the Sigma-April-Release milestone Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have changes to this file? Should be reverted.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also not resolved. If you want this PR merged you have to engage in the review. Let the reviewer decide if an issues is resolved or not. If something is unclear or you need assistance, please ask.

Comment thread tests/rule-references.txt

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also be reverted

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not resolved

@nasbench nasbench changed the base branch from master to fix-linux-fps April 23, 2026 00:32
@nasbench nasbench changed the base branch from fix-linux-fps to master April 23, 2026 00:32
@Mahir-Ali-khan

Copy link
Copy Markdown
Contributor Author

Hello,

When this will get merge

Mahir-Ali-khan and others added 7 commits April 23, 2026 15:02
Detects the execution of the bcp utility with 'queryout' or 'out' options in Windows Security Event Log (Event ID 4688). This rule is useful for identifying potential misuse of data copy between an SQL instance to a file
This sigma rule is created to detect the abuse of domain service, when queried with a hostname with an embedded IP address, returns that IP address

Detects DNS queries to public wildcard DNS services that resolve subdomains to IP addresses. These services can be abused by attackers for command and control, tunneling, phishing.
@nasbench

Copy link
Copy Markdown
Member

Hello,

When this will get merge

Whenever we feel like it :)

@Mahir-Ali-khan

Copy link
Copy Markdown
Contributor Author

Hello,

Is there anything required from me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed The PR requires review Rules Threat-Hunting Windows Pull request add/update windows related rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants