-
Notifications
You must be signed in to change notification settings - Fork 127
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
Bug: Missing Communication Link Reference in individual_risk_categories Despite Proper Definition in technical_assets #102
Comments
Thanks for raising the issue. I have just tried to run this from source code and it's working absolutely fine with me. |
I am using this docker version, the issue happened both in Windows and Mac podman run --rm -it threagile/threagile --version |_ | |_ _ __ ___ __ _ __ () | ___ Documentation: https://threagile.io |
I also tried to run it from the source code, but the risk defined in the "individual risk category" is missing from the reports. see #103. |
Yeah, individual risks are reworked to use something like this https://github.com/Threagile/threagile/blob/master/pkg/risks/scripts/accidental-secret-leak.yaml @joreiche may share a bit more about it |
Oh, thanks for the info. As I am using individual risk categories (irc) heavily, just want to clarify that you mean irc would be a rework like the one in https://github.com/Threagile/threagile/blob/master/pkg/risks/scripts/accidental-secret-leak.yaml? If so, I need to temporarily separate those parts in another manual report until your work is done. It would be better to announce this and turn off the individual risk category functionalities if that is the case. We are serious users of Threagile, and that would impact what we should invest time in. :p Is there anything I can contribute? I can ping @joreiche |
Thanks for making Threagile an even better tool! Good job! |
@DavidCheuk In the upcoming version 1.0, the native-code custom risk modules have been reworked to enable cross-platform support. I apologize that there isn't any documentation for this yet. We haven't officially released 1.0 yet, one of the main reasons being the lack of documentation of the changes as well as insufficient testing of this functionality. I will try to give you the important bits here but please be aware that this is gathered ad-hoc and likely incomplete. Please, see cmd/risk_demo/main.go for a working example of what your custom risk modules should look like. The main differences to the previous implementation (off the top of my head) are: custom risk modules are now regular executables, not shared libraries To Yevhen's point, there is also a script engine to allow writing risk modules. I expect to hook up this functionality into the custom risk modules as well but I don't think this has been done yet. Only the built-in risk modules are currently being loaded and executed using the script engine. Eventually, native-code scripts (and RAA calculations) will be deprecated in favor of only supporting scripts in the future. We will definitely keep in mind your use case and the fact that you have a number of custom modules that would need to be converted. When we start deprecating support for native-code modules, I'll be happy to help you convert your modules to scripts. |
@DavidCheuk I pushed the fixed risk demo module to branch Once this branch has been merged, you should be able to run Threagile with a config file like this threagile run --config config.json with {
"PluginFolder": "path_to_plugins",
"RiskRulesPlugins": [
"risk_demo"
]
} |
The demo risk rule is now merged to |
Issue Summary: I'm experiencing an issue where Threagile fails to recognize a communication link defined in technical_assets within the individual_risk_categories. Specifically, the communication link process-to-db is reported as missing in the risk category internal-fault-risk, even though it is correctly defined in the technical_assets.
Error message:
2024/10/22 00:24:58 missing referenced communication link at individual risk 'internal-fault-risk': process-to-db
threagile.yaml
Expected Behavior: Threagile should recognize the process-to-db communication link defined within technical_assets and associate it correctly with the internal-fraud-risk in individual_risk_categories without any missing reference errors.
Actual Behavior: Despite the correct definition of process-to-db in technical_assets and proper referencing in individual_risk_categories, Threagile reports that the communication link is missing.
The text was updated successfully, but these errors were encountered: