Skip to main content

Python classes for the Maltego standard entity catalog.

Project description

Maltego Standard Entities

maltego-transforms-std-entities exposes Maltego's standard entity catalog as Python classes for transform authors.

Maltego Graph Browser and Maltego Graph Desktop discover standard entity definitions from standard entity servers. Installing this package gives Python transforms reusable classes for the same standard entity type names, so transforms can emit and consume entities that pivot cleanly between each other in the graph.

Installation

pip install maltego-transforms-std-entities

Basic Usage

from maltego.entities import Domain, EmailAddress, IPv4Address, Website

domain = Domain("example.org")
website = Website("https://example.org")
address = IPv4Address("203.0.113.10")
email = EmailAddress("analyst@example.org")

print(domain.TYPE_NAME, website.TYPE_NAME, address.TYPE_NAME, email.TYPE_NAME)

Casefile entities are part of the same catalog and can also be imported from maltego.entities.casefile:

from maltego.entities import BankAccount, Gun
from maltego.entities.casefile import Businessman, IdentificationNumber

print(BankAccount.TYPE_NAME, Gun.TYPE_NAME)
print(Businessman.TYPE_NAME, IdentificationNumber.TYPE_NAME)

When To Extend

Prefer an existing standard entity when its type name and properties match the data your transform returns. Reusing standard entities makes downstream pivots easier because other transforms already know those schemas.

Extend a standard class when your data is the same kind of thing but needs additional properties:

from maltego.entities import Person
from maltego.server import MaltegoEntityConfig, MaltegoEntityProperty


class StaffMember(Person):
    Config = MaltegoEntityConfig(display_name="Staff Member")

    employee_id: str = MaltegoEntityProperty(
        display_name="Employee ID",
        sample_value="E-42",
    )

Create a custom entity only when no standard entity expresses the object without losing meaning or overloading unrelated fields.

Package Scope

This package provides the shared Python catalog for Maltego standard entities. It includes reusable entity classes, Casefile entity classes, icon classes with packaged icon assets, category definitions, and inline type information for transform authors and server implementations.

Maltego already provides discovery for these standard entities in the Graph Browser and Desktop clients, so you don't need to register them yourself. Import the classes and use them directly in your transforms.

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

maltego_transforms_std_entities-1.0.0.tar.gz (308.9 kB view details)

Uploaded Source

Built Distribution

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

maltego_transforms_std_entities-1.0.0-py3-none-any.whl (333.0 kB view details)

Uploaded Python 3

File details

Details for the file maltego_transforms_std_entities-1.0.0.tar.gz.

File metadata

File hashes

Hashes for maltego_transforms_std_entities-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c0bd2504a0c369cb522dd459c33d4b6afd46e329ffa477ad3094435dc113b128
MD5 ea00b8e4cd7392b06c39fad617fb9500
BLAKE2b-256 2a2c3a409b8dd18d4097758b9dff4167609be4f219961d2b87b78b2d6dced445

See more details on using hashes here.

Provenance

The following attestation bundles were made for maltego_transforms_std_entities-1.0.0.tar.gz:

Publisher: release.yml on MaltegoTech/maltego-transforms-std-entities

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file maltego_transforms_std_entities-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for maltego_transforms_std_entities-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d495a3564196ae1bfb6673411e339a9e9ed944323ce68779928e1a0a736a204
MD5 f20e1eabd5e55ed557c38e8a2cd8c2e0
BLAKE2b-256 a70e04bbb0a24eb2b33c8479e5e04349e679c1c11e48008cf29d838d0930705a

See more details on using hashes here.

Provenance

The following attestation bundles were made for maltego_transforms_std_entities-1.0.0-py3-none-any.whl:

Publisher: release.yml on MaltegoTech/maltego-transforms-std-entities

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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