blint 2.0.7__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {blint-2.0.7 → blint-2.1.0}/PKG-INFO +1 -1
  2. {blint-2.0.7 → blint-2.1.0}/blint/sbom.py +5 -4
  3. {blint-2.0.7 → blint-2.1.0}/pyproject.toml +1 -1
  4. {blint-2.0.7 → blint-2.1.0}/LICENSE +0 -0
  5. {blint-2.0.7 → blint-2.1.0}/README.md +0 -0
  6. {blint-2.0.7 → blint-2.1.0}/blint/__init__.py +0 -0
  7. {blint-2.0.7 → blint-2.1.0}/blint/analysis.py +0 -0
  8. {blint-2.0.7 → blint-2.1.0}/blint/android.py +0 -0
  9. {blint-2.0.7 → blint-2.1.0}/blint/binary.py +0 -0
  10. {blint-2.0.7 → blint-2.1.0}/blint/checks.py +0 -0
  11. {blint-2.0.7 → blint-2.1.0}/blint/cli.py +0 -0
  12. {blint-2.0.7 → blint-2.1.0}/blint/config.py +0 -0
  13. {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/README.md +0 -0
  14. {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/__init__.py +0 -0
  15. {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/spdx.py +0 -0
  16. {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/spec.py +0 -0
  17. {blint-2.0.7 → blint-2.1.0}/blint/data/__init__.py +0 -0
  18. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/__init__.py +0 -0
  19. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_entries_generic.yml +0 -0
  20. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_entries_pe.yml +0 -0
  21. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_exe_go.yml +0 -0
  22. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_imports_pe.yml +0 -0
  23. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_methods_generic.yml +0 -0
  24. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_methods_mips.yml +0 -0
  25. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_generic.yml +0 -0
  26. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_go.yml +0 -0
  27. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_rust +0 -0
  28. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_rust.yml +0 -0
  29. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_rootkits_win.yml +0 -0
  30. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_antiforensic.yml +0 -0
  31. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_generic.yml +0 -0
  32. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_hooka.yml +0 -0
  33. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_macho.yml +0 -0
  34. {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_rust.yml +0 -0
  35. {blint-2.0.7 → blint-2.1.0}/blint/data/rules.yml +0 -0
  36. {blint-2.0.7 → blint-2.1.0}/blint/logger.py +0 -0
  37. {blint-2.0.7 → blint-2.1.0}/blint/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blint
3
- Version: 2.0.7
3
+ Version: 2.1.0
4
4
  Summary: Linter and SBOM generator for binary files.
5
5
  Home-page: https://github.com/OWASP-dep-scan/blint
6
6
  License: MIT
@@ -2,7 +2,6 @@ import base64
2
2
  import binascii
3
3
  import codecs
4
4
  import os
5
- import urllib.parse
6
5
  import uuid
7
6
  from datetime import datetime
8
7
  from typing import Any, Dict
@@ -526,7 +525,7 @@ def process_dotnet_dependencies(dotnet_deps: dict[str, dict], dependencies_dict:
526
525
  ],
527
526
  )
528
527
  if hash_content:
529
- comp.hashes = Hash(alg=HashAlg.SHA_512, content=hash_content),
528
+ comp.hashes = [Hash(alg=HashAlg.SHA_512, content=hash_content)],
530
529
  comp.bom_ref = RefType(purl)
531
530
  components.append(comp)
532
531
  targets: dict[str, dict[str, dict]] = dotnet_deps.get("targets", {})
@@ -559,7 +558,9 @@ def process_go_dependencies(go_deps: dict[str, str]) -> list[Component]:
559
558
  # This would make this compatible with cdxgen and depscan
560
559
  # See https://github.com/CycloneDX/cdxgen/issues/897
561
560
  for k, v in go_deps.items():
562
- purl = f"""pkg:golang/{urllib.parse.quote_plus(k)}@{v.get("version")}"""
561
+ # See #83
562
+ # purl specification uses namespace hack for go to make this identifier use slash
563
+ purl = f"""pkg:golang/{k.lower()}@{v.get("version")}"""
563
564
  comp = Component(
564
565
  type=Type.library,
565
566
  name=k,
@@ -576,7 +577,7 @@ def process_go_dependencies(go_deps: dict[str, str]) -> list[Component]:
576
577
  except binascii.Error:
577
578
  hash_content = str(v.get("hash").removeprefix("h1:"))
578
579
  if hash_content:
579
- comp.hashes = Hash(alg=HashAlg.SHA_256, content=hash_content)
580
+ comp.hashes = [Hash(alg=HashAlg.SHA_256, content=hash_content)]
580
581
  comp.bom_ref = RefType(f"""pkg:golang/{k}@{v.get("version")}""")
581
582
  components.append(comp)
582
583
  return components
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "blint"
3
- version = "2.0.7"
3
+ version = "2.1.0"
4
4
  description = "Linter and SBOM generator for binary files."
5
5
  authors = ["Prabhu Subramanian <prabhu@appthreat.com>", "Caroline Russell <caroline@appthreat.dev>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes