-
Notifications
You must be signed in to change notification settings - Fork 23
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
acs conversion #275
acs conversion #275
Conversation
Codecov Report
@@ Coverage Diff @@
## master #275 +/- ##
==========================================
- Coverage 68.22% 67.99% -0.23%
==========================================
Files 19 20 +1
Lines 6564 6811 +247
==========================================
+ Hits 4478 4631 +153
- Misses 2086 2180 +94
Continue to review full report at Codecov.
|
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.
The ACS json schema says these are required properties: create_date_time
, responsible_entity_custodian
, policy_reference
, control_set
. If their STIX 1.x counterparts were required, should we give warnings about them being missing? If they weren't required in STIX 1.x are there default values we could use? In order to prevent outputting json that will fail to validate against the schema.
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.
LGTM!
stix2elevator/convert_to_acs.py
Outdated
if derivative_classification.classified_on: | ||
cd["classified_on"] = convert_timestamp_to_string(derivative_classification.classified_on) | ||
if derivative_classification.derived_from: | ||
cd["dervived_from"] = str(derivative_classification.derived_from) |
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.
cd["dervived_from"] = str(derivative_classification.derived_from) | |
cd["derived_from"] = str(derivative_classification.derived_from) |
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.
good catch
No description provided.