-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
microsoft_sql_dangerous_operations #5221
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
Open
dan21san
wants to merge
1
commit into
SigmaHQ:master
Choose a base branch
from
dan21san:microsoft_sql_critical_operations
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
microsoft_sql_dangerous_operations #5221
dan21san
wants to merge
1
commit into
SigmaHQ:master
from
dan21san:microsoft_sql_critical_operations
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nasbench
requested changes
Mar 4, 2025
Comment on lines
+21
to
+23
Data|contains: | ||
- 'statement:TRUNCATE TABLE' | ||
- 'statement:DROP TABLE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide example logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="MSSQLSERVER$AUDIT" />
<EventID Qualifiers="16384">33205</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>3</Task>
<Opcode>0</Opcode>
<Keywords>0x80a0000000000000</Keywords>
<TimeCreated SystemTime="2025-03-03T08:38:18.9887014Z" />
<EventRecordID>1263721</EventRecordID>
<Correlation ActivityID="{...}" />
<Execution ProcessID="756" ThreadID="880" />
<Channel>Security</Channel>
<Computer>TESTSQL.testdomain</Computer>
<Security UserID="S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx" />
</System>
- <EventData>
<Data>audit_schema_version:1 event_time:2025-03-05 08:38:18.0821929 sequence_number:1 action_id:DR succeeded:true is_column_permission:false session_id:70 server_principal_id:266 database_principal_id:1 target_server_principal_id:0 target_database_principal_id:0 object_id:1845581613 user_defined_event_id:0 transaction_id:175974 class_type:U duration_milliseconds:0 response_rows:0 affected_rows:0 client_tls_version:0 database_transaction_id:0 ledger_start_sequence_number:0 client_ip:local machine permission_bitmask:00000000000000000000000000000000 [...] statement:DROP TABLE dbo.tst1_Table_3 [...]</Data>
</EventData>
</Event>
Log sample (blurred):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Author Input Required
changes the require information from original author of the rules
Rules
Windows
Pull request add/update windows related rules
Work In Progress
Some changes are needed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Add a new rule about the critical transaction on MS SQL SERVER (as truncate or drop table).
Changelog
Example Log Event
Fixed Issues
SigmaHQ Rule Creation Conventions