-
Notifications
You must be signed in to change notification settings - Fork 176
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
Rename architecture-specific rules and update rule names inside YAML files #1011
base: master
Are you sure you want to change the base?
Conversation
anti-analysis/anti-forensic/patch-process-command-line-via-x86-assembly.yml
Outdated
Show resolved
Hide resolved
I also noticed that there's a mistake in the logic of this script because the rule always returns False. Could you please let me know if I'm right? If so I'll quick fix that one too! |
i agree that looks impossible. nice catch! would you please research and fix this? (if you want, of course) |
Sure! I'm happy to fix it! |
62bc59e
to
a87eb3e
Compare
Done with changing the logic of the rule 🌟 |
@akh7177 it appears lints are failing now:
This is likely the results of a |
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 see my comment about lints failing.
Yup! I'll verify that and put up a comment over here. Is that okay? |
@mike-hunhoff Verified that it passes the lints locally! |
@akh7177 lints are still failing:
|
I ran the lint.py script again just now on my PC with the new rules and it seems to be passing perfectly 🤔 |
Have you pushed all of your local changes? |
Yes, I've made sure to push the entire rules folder. As discussed yesterday, I believe it is the match feature which is causing the issue over here because all the rules that are flagged in the above test report are the ones that I've renamed |
This PR currently does not include any changes to the rule packed with generic packer, which is causing lints to fail. What are the contents of this rule in your local copy? |
That rule is indeed untouched. But it does not seem to be effecting the lint script locally when I run it to the entire rules folder. rule: |
Hmm I'm not sure what is happening in your local environment that would allow the tests to pass. Please verify that you're running lint.py on the expected rules folder and, if so, that the rules folder contains the updates that you've pushed here. |
Yes, it indeed is indeed intriguing. I have a fix in my mind. I'll try implementing it and get back to you ( Still not 100% sure why its failing. All the changes are are pushed 🥲 ) |
…e-address-via-x86-assembly.yml
@mike-hunhoff Could you pls try running the test now? 🤞 |
Okay. I believe changing the match feature of all the files will do the job. On my way! |
@akh7177 lints failed again. I pulled your changes locally and ran
There must be something going on with your local environment, I'd recommend fixing this before proceeding. |
Sure! I'll try to find a solution for it. My other PR regarding screen-capture rule seems to be passing the lints though 🤔 |
@mike-hunhoff Yes, there indeed was something off with my local environment. I re-installed everything and then ran the lints. Faced the same error that you had mentioned. Now, I've fixed the match feature that references the old rule names to use new new names. I also ran the capafmt.py through the entire folder to result in proper formatting and made sure to pass the lints. Let's see how it goes. |
a8498e9
to
aa5764f
Compare
…ture inside YAML files
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.
I've left comments for your review. It appears that the file mode of multiple files have been changed. Please revert these changes.
@@ -1,6 +1,6 @@ | |||
rule: | |||
meta: | |||
name: get number of processors | |||
name: get number of processors via x86 assembly |
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.
There is branch that does not use x86 assembly, please revert.
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.
There is branch that does not use x86 assembly, please revert.
My bad! I oversaw the last statement. Will revert it back
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
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 revert the changes to this file.
4f20e44
to
5f55ee4
Compare
Hello @mike-hunhoff |
I'm not sure as I only can see the file state from the view of this PR. It's especially confusing because only some of the files had this permission change. What commands/scripts did you run against your local rules directory prior to the commit these changes took place? |
@mike-hunhoff I'm pretty sure the only time I've accessed these files were when I ran capafmt.py against the entire rules directory. When I open these files in edit mode through github, the only change I notice in all of these is the addition of a new line at the end, which might've been added by capafmt.py as it could've been previously absent. Could you please check if a new line was present at the end of these particular scripts previously? |
This PR addresses issue #979 by renaming architecture-specific rules.
Since all identified architecture-specific rules are x86-only, only x86-related rules have been renamed.
closes #979