Skip to content

Releases: polyswarm/polyswarm-artifact

1.4.3 Release

09 Jun 19:40
1.4.3
bea3e9f
Compare
Choose a tag to compare

1.4.3 (2021-06-09)

  • Fix - Add ScanMedata as an identical alternative to Verdict

1.4.0 Release

08 Jun 21:22
@zv zv
50a9413
Compare
Choose a tag to compare
  • Feature reproduce earlier jsonschema annotations and integrity checks with pydantic validations. These are synthesized from type annotations on the underlying object at runtime and provide type & value checks as well as in-depth information about the source and cause of the invalid data.

  • Feature Convert all existing jsonschema annotations to mypy-typed classes (the get_schema() & schema methods now return automatically synthesized JSON schemas for the corresponding class). This also introduces the following automatically-defined methods & attributes:

    • dict()
      returns a dictionary of the model's fields and values
    • json()
      returns a JSON string representation dict()
    • copy()
      returns a deep copy of the model
    • parse_obj()
      a utility for loading any object into a model with error handling if the object is not a dictionary
    • schema()
      returns a dictionary representing the model as JSON Schema
    • schema_json()
      returns a JSON string representation of schema()
    • __fields_set__
      Set of names of fields which were set when the model instance was initialised
    • __fields__
      a dictionary of the model's fields
    • __config__
      the configuration class for the model
  • Note Equality checks between descendants of Schema and dict-like objects now excludes all default field arguments to the Schema object before comparison.

  • Feature Add validations to all new class instances which supply initialization arguments (e.g Verdict() is still valid, however Verdict(ip_addresses=["blah"]) would raise a ValueError)

  • Note All methods which set a property and return self are now defined with the @chainable decorator

  • Note Added set_analysis_conclusion(self, heuristic: bool = None) method to Verdict, this method is intended to set "analysis conclusions" on the underlying object, e.g:

Verdict().set_malware_family("unknown").set_analysis_conclusion(heuristic=True)
  • Note Allow URLArtifact to pass uri alone and have it's protocol field automatically filled in.
  • Note Hash properties on FileArtifact (md5, sha1 & sha256) now validate both length and hex-only characters.
  • Note FileArtifact's size attribute must be a positive integer
  • Note Verdict's ip_addresses property must be a list of IPv4 or IPv6-like strings.
  • Note Verdict's domains property now validates any hostname-like object with a TLD

1.3.3 Release

10 Apr 14:21
52404c5
Compare
Choose a tag to compare

1.3.3 Release (2020-04-10)

  • Fix - Pin jsonschema version to prevent RefResolutionError

1.3.2 Release

07 Jan 14:42
bde8000
Compare
Choose a tag to compare

1.3.2 Release (2020-01-07)

  • Fix - Stop reading files when validating json

1.3.1 Release

12 Sep 13:58
1e1a83b
Compare
Choose a tag to compare

1.3.1 Release (2019-09-12)

  • Fix - Add error handling in decode_content()

1.3.0 Release

09 Sep 20:11
2c55b56
Compare
Choose a tag to compare

1.3.0 Release (2019-09-9)

  • Feature - Add decode_content() to decode bytes content based on ArtifactType

1.2.1 Release

09 Jul 20:31
Compare
Choose a tag to compare

1.2.1 Release (2019-07-9)

  • Feature - Add Python 3.5.4 support

1.2.0 Release

03 Jul 13:23
49d42dd
Compare
Choose a tag to compare

1.2.0 Release (2019-07-3)

  • Feature - Add Bounty .json file and Schema implementations for easily building matching Bounty artifact metadata.

1.1.1 Release

07 Jun 18:40
e584fca
Compare
Choose a tag to compare

1.1.1 Release (2019-06-07)

  • Fix - Change architecure to architecture

1.1.0 Release

05 Jun 03:47
4e58ef5
Compare
Choose a tag to compare

1.1.0 Release (2019-05-29)

  • Feature - Add Schema .json files and Schema implementations for easily building matching JSON strings