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

added include_pre_attack parameter to attack_client constructor #61

Merged
merged 2 commits into from Nov 19, 2022

Conversation

rubinatorz
Copy link
Contributor

Hi @Cyb3rWard0g,

As described in #59 I would propose for having a parameter in de attack_client constructor to not include pre-attack STIX objects in the COMPOSITE_DS variable, because it will include information on PRE while this information is not updated by MITRE anymore. The parameter is called include_pre_attack, which is an optional parameter having False as default value. People can still choose to include pre-attack objects by setting include_pre_attack=True in the constructor.

I saw the get_pre_xxx methods and I made it in a way that with this new parameter set to False this get_pre_xxx methods will still work (because TC_PRE_SOURCE is still populated (but not included in COMPOSITE_DS).

@rubinatorz rubinatorz closed this Oct 31, 2022
@rubinatorz rubinatorz reopened this Oct 31, 2022
@Cyb3rWard0g
Copy link
Collaborator

Thank you very much @rubinatorz ! I appreciate you taking the time to share the fix. I will upgrade the library package.

@Cyb3rWard0g Cyb3rWard0g merged commit da8c545 into OTRF:master Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants