-
Notifications
You must be signed in to change notification settings - Fork 76
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
Rough draft of IOC data model. #1029
Rough draft of IOC data model. #1029
Conversation
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.
can we add a validate function to verify feed id, values, type and value are non-null
@eirsep Added some basic validation. |
src/main/java/org/opensearch/securityanalytics/model/IocDao.java
Outdated
Show resolved
Hide resolved
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
72a75ab
to
8727d3c
Compare
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
plz add serialization tests
Signed-off-by: AWSHurneyt <[email protected]>
@eirsep Added some unit tests. Will add more once we're more confident that this is the final structure of the data model. |
26f9b0c
into
opensearch-project:feature/threat_intel
* Rough draft of IOC data model. Signed-off-by: AWSHurneyt <[email protected]> * Changed IOC value from a list to a string. Signed-off-by: AWSHurneyt <[email protected]> * Added validation for IOC type, value, and feedId fields. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType to for ipv4, and ipv6. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
* Rough draft of IOC data model. Signed-off-by: AWSHurneyt <[email protected]> * Changed IOC value from a list to a string. Signed-off-by: AWSHurneyt <[email protected]> * Added validation for IOC type, value, and feedId fields. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType to for ipv4, and ipv6. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
* Rough draft of IOC data model. Signed-off-by: AWSHurneyt <[email protected]> * Changed IOC value from a list to a string. Signed-off-by: AWSHurneyt <[email protected]> * Added validation for IOC type, value, and feedId fields. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType to for ipv4, and ipv6. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
* Rough draft of IOC data model. Signed-off-by: AWSHurneyt <[email protected]> * Changed IOC value from a list to a string. Signed-off-by: AWSHurneyt <[email protected]> * Added validation for IOC type, value, and feedId fields. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType to for ipv4, and ipv6. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
* Rough draft of IOC data model. Signed-off-by: AWSHurneyt <[email protected]> * Changed IOC value from a list to a string. Signed-off-by: AWSHurneyt <[email protected]> * Added validation for IOC type, value, and feedId fields. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType to for ipv4, and ipv6. Signed-off-by: AWSHurneyt <[email protected]> * Refactored IocType. Signed-off-by: AWSHurneyt <[email protected]> * Added unit tests. Signed-off-by: AWSHurneyt <[email protected]> --------- Signed-off-by: AWSHurneyt <[email protected]>
Description
These are the references I'm using.
Domain documentation
Section "6.4 Domain Name Object" of https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_k017w16zutw
Hash documentation
https://stix2.readthedocs.io/en/latest/guide/serializing.html
IP documentation
"6.8 IPv4 Address Object" section of https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_wh296fiwpklp
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.