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

Update file_event_win_anydesk_artefact.yml #4924

Merged
merged 3 commits into from
Jul 23, 2024
Merged

Conversation

fornotes
Copy link
Contributor

@fornotes fornotes commented Jul 19, 2024

Summary of the Pull Request

Removing ".temp" condition for TargetFileName

To test this rule:

  • I downloaded latest AnyDesk.exe (9301F6668A60613EA24505B0DE6BC59B0E98B9F68A5C8A990C60CA076012D528) from hxxps[://]anydesk[.]com
  • Installed Sysmon with a test config that logs all file creation events under C:\user*\AppData\Roaming\AnyDesk\ directory
  • Next ran AnyDesk.exe by double clicking on it

AnyDesk.exe did create user.conf and system.conf file, but these files did not have ".temp" in their file name.

Changelog

fix: Anydesk Temporary Artefact - Remove unnecessary logic from the detection section.

Example Log Event

Sysmon Config used during the test

<Sysmon schemaversion="4.90">
	<!-- Hashing algorithms that can be used are md5,sha1,sha256,imphash or * for all,
  more than once can be specified separated by using comas -->
	<HashAlgorithms>md5</HashAlgorithms>
	<!-- Checking for signature revocation for drivers. -->
	<CheckRevocation/>
	<EventFiltering>
		<!-- Do not log any Process Termination Event. -->
		<ProcessTerminate onmatch="include"></ProcessTerminate>
		<!-- Do not log any Process Creation Event. -->
		<ProcessCreate onmatch="include"></ProcessCreate>
		<!-- Log File Creation Events Where TargetFileName contains \AppData\Roaming\AnyDesk\ . -->
		<FileCreate onmatch="include">
			<TargetFilename condition="contains">\AppData\Roaming\AnyDesk\</TargetFilename>
		</FileCreate>
	</EventFiltering>
</Sysmon>

Output:
image

Fixed Issues

N/A

SigmaHQ Rule Creation Conventions

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

removing .temp condition for TargetFileName
@github-actions github-actions bot added Rules Windows Pull request add/update windows related rules labels Jul 19, 2024
@frack113
Copy link
Member

Hi,
thanks for the return.
As the detection change , we add modified in the rule:

date: 2022/02/11
modified: 2024/07/20

@fornotes
Copy link
Contributor Author

fornotes commented Jul 22, 2024

modified date added to the rule file.

@nasbench nasbench merged commit ab32554 into SigmaHQ:master Jul 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rules Windows Pull request add/update windows related rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants