Skip to content

Documentation for deleting report is inconsistent with validation #21

@edeca

Description

@edeca

The documentation says:

For reports to be deleted, remove all IOCs from the report and update the timestamp rather than removing the report.

However, a report with removed IOCs does not validate:

    {
      "title": "Deleted item",
      "id": "63abcefe6f851464002510074f3da6a22d9072173e0daa1522468b22c62109d9",
      "timestamp": 1539089424,
      "score": 100,
      "link": "https://example.com",
      "iocs": {}
    }

The output from validate_feed.py is:

-> % python validate_feed.py -f output.json
-> Validated that file exists and is readable
-> Validated that feed file is valid JSON
-> Unable to validate that the file is a valid CB feed
-> Details:

Report with no IOCs in report 63abcefe6f851464002510074f3da6a22d9072173e0daa1522468b22c62109d9

Errors also occur if the iocs key is completely removed:

-> % python validate_feed.py -f output.json
-> Validated that file exists and is readable
-> Validated that feed file is valid JSON
-> Unable to validate that the file is a valid CB feed
-> Details:

Report missing required field(s): iocs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions