Skip to main content

A Python implementation of the asset Database.

Project description

Open Asset Database

This package is a Python implementation of the Asset Database from the OWASP Amass Project.

Install

pip install open-asset-store

Exemple

from asset_db.repository.neo4j import NeoRepository
from asset_db.types import Edge
from asset_db.types import Entity
from oam import FQDN
from oam import IPAddress, IPAddressType
from oam import BasicDNSRelation
from oam import DNSRecordProperty
from oam import SourceProperty

uri = "neo4j://localhost"
auth = ("neo4j", "password")

with NeoRepository(uri, auth) as db:
    fqdn = db.create_asset(FQDN("owasp.org"))
    
    ip = db.create_entity(
        Entity(
            asset = IPAddress("104.20.44.163", IPAddressType.IPv4)))
    
    a_record  = db.create_edge(
        Edge(
            relation    = BasicDNSRelation("dns_record", rrtype=1, rrname="A"),
            from_entity = fqdn,
            to_entity   = ip))
    
    txt_record = db.create_entity_property(
        fqdn,
        DNSRecordProperty("dns_record", "token=awes0me", 16, "TXT"))
    
    source = db.create_edge_property(
        a_record,
        SourceProperty("myscript", 100))

Differences from upstream

In its current state, this repository only implements a Neo4j backend.

There is no :

  • support for PostgreSQL or SQLite
  • caching mechanism
  • triple query interface

License

This code is licensed under the Apache License version 2.0.

See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_asset_store-0.0.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_asset_store-0.0.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file open_asset_store-0.0.1.tar.gz.

File metadata

  • Download URL: open_asset_store-0.0.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for open_asset_store-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f2b2f90e73d33b40dee9d2d840e6e0e8b043263c0460de30212f28d544fa972f
MD5 76e422943040b8c99a6f12d4df5c7373
BLAKE2b-256 bb9e55b8629cdf134527f982b6444cd589a72680978f3731b10f5ed4ac390bb3

See more details on using hashes here.

File details

Details for the file open_asset_store-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for open_asset_store-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0293fbd667d894a9536854dadb07300844d216546a7e40aceb571e17addc0044
MD5 310ffd0fbf91822704e6c52352acf580
BLAKE2b-256 fd4ce6f17bb3820e998cf52a8c9aed668588782153de6ef8c3d38314a4824e0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page