ADT
psengine.enrich.lookup
¶
EnrichedCompany
¶
Bases: BaseEnrichedEntity
Company Enriched by /v2/company/{id}
and /v2/company/by_domain/{domain}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
threat_list
class-attribute
instance-attribute
¶
threat_list: Optional[list[IdNameTypeDescription]] = Field(
alias='threatLists', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedDomain
¶
Bases: BaseEnrichedEntity
Domain Enriched by /v2/domain/{domain}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
enterprise_lists
class-attribute
instance-attribute
¶
enterprise_lists: Optional[list[EnterpriseList]] = Field(
alias='enterpriseLists', default=None
)
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
threat_lists
class-attribute
instance-attribute
¶
threat_lists: Optional[list[IdNameTypeDescription]] = Field(
alias='threatLists', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedHash
¶
Bases: BaseEnrichedEntity
Hash Enriched by /v2/hash/{hash}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
enterprise_lists
class-attribute
instance-attribute
¶
enterprise_lists: Optional[list[EnterpriseList]] = Field(
alias='enterpriseLists', default=None
)
file_hashes
class-attribute
instance-attribute
¶
hash_algorithm
class-attribute
instance-attribute
¶
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
threat_list
class-attribute
instance-attribute
¶
threat_list: Optional[list[IdNameTypeDescription]] = Field(
alias='threatLists', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedIP
¶
Bases: BaseEnrichedEntity
IP Enriched by /v2/ip/{ip}
endpoint. Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
dns_port_cert
class-attribute
instance-attribute
¶
dns_port_cert: Optional[DnsPortCert] = Field(
alias='dnsPortCert', default=None
)
enterprise_lists
class-attribute
instance-attribute
¶
enterprise_lists: Optional[list[EnterpriseList]] = Field(
alias='enterpriseLists', default=None
)
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
risky_cidr_ips
class-attribute
instance-attribute
¶
risky_cidr_ips: Optional[list[RiskyCIDRPIP]] = Field(
alias='riskyCIDRIPs', default=None
)
threat_list
class-attribute
instance-attribute
¶
threat_list: Optional[list[IdNameTypeDescription]] = Field(
alias='threatLists', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedMalware
¶
Bases: BaseEnrichedEntity
Malware Enriched by /v2/malware/{id}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedURL
¶
Bases: BaseEnrichedEntity
URL Enriched by /v2/url/{url}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
enterprise_lists
class-attribute
instance-attribute
¶
enterprise_lists: Optional[list[EnterpriseList]] = Field(
alias='enterpriseLists', default=None
)
intel_card
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichedVulnerability
¶
Bases: BaseEnrichedEntity
Vulnerability Enriched by /v2/vulnerability/{cve}
endpoint.
Inherit behaviours from BaseEnrichedEntity
.
ai_insights
class-attribute
instance-attribute
¶
ai_insights: Optional[AIInsights] = Field(
alias='aiInsights', default=None
)
analyst_notes
class-attribute
instance-attribute
¶
analyst_notes: Optional[list[AnalystNote]] = Field(
alias='analystNotes', default=[]
)
common_names
class-attribute
instance-attribute
¶
cpe_22_uri
class-attribute
instance-attribute
¶
cvss_ratings
class-attribute
instance-attribute
¶
cvss_ratings: list[CVSSRating] = Field(
alias='cvssRatings', default=None
)
enterprise_lists
class-attribute
instance-attribute
¶
enterprise_lists: Optional[list[EnterpriseList]] = Field(
alias='enterpriseLists', default=None
)
intel_card
class-attribute
instance-attribute
¶
lifecycle_stage
class-attribute
instance-attribute
¶
linked_malware
class-attribute
instance-attribute
¶
linked_malware: Optional[LinkedMalware] = Field(
alias='linkedMalware', default=None
)
model_config
class-attribute
instance-attribute
¶
nvd_description
class-attribute
instance-attribute
¶
nvd_references
class-attribute
instance-attribute
¶
nvd_references: Optional[list[NvdReference]] = Field(
alias='nvdReferences', default=None
)
raw_risk
class-attribute
instance-attribute
¶
raw_risk: Optional[list[RawRisk]] = Field(
alias='rawrisk', default=None
)
related_entities
class-attribute
instance-attribute
¶
related_entities: Optional[list[RelatedEntities]] = Field(
alias='relatedEntities', default=[]
)
related_links
class-attribute
instance-attribute
¶
risk_mapping
class-attribute
instance-attribute
¶
risk_mapping: Optional[list[RiskMapping]] = Field(
alias='riskMapping', default=None
)
threat_list
class-attribute
instance-attribute
¶
threat_list: Optional[list[IdNameTypeDescription]] = Field(
alias='threatLists', default=None
)
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
EnrichmentData
¶
Bases: RFBaseModel
Model for the custom return of IOC lookups.
This class supports hashing, equality comparison, string representation, and total
ordering of EnrichmentData
instances based on their content
.
Hashing
Returns a hash value based on the content's attributes.
- If
content
is an instance ofEnrichedMalware
: The hash is calculated using the entityid_
and the last seen timestamp. - Else:
The hash includes the entity
id_
, risk score, and the last seen timestamp.
Equality
Checks equality between two EnrichmentData
instances based on their content
.
- If
content
is an instance ofEnrichedMalware
: Equality is determined by comparing the entity name and the last seen timestamp. - Else: Equality is determined by comparing the entity name, last seen timestamp, and risk score.
Greater-than Comparison
Defines a greater-than comparison between EnrichmentData
instances based on their
content
.
- If
content
is an instance ofEnrichedMalware
: Comparison is based on the last seen timestamp and entity name. - Else: Comparison is based on the last seen timestamp, entity name, and risk score.
String Representation
__str__
and __repr__
return a formatted string representation of the instance.
- If
content
is an instance ofEnrichedMalware
: Includes class name, entity name, and last seen timestamp. - Else: Includes class name, entity name, risk score, and last seen timestamp.
Total ordering
The ordering of EnrichmentData
instances is determined by the content's last seen
timestamp.
- If
content
is an instance ofEnrichedMalware
: If two instances have the same last seen timestamp, their entity name is used as a secondary criterion. - Else: If two instances have the same last seen timestamp, their entity name and risk score are used as secondary criteria.
model_config
class-attribute
instance-attribute
¶
__eq__
¶
__eq__(other: EnrichmentData)
Source code in psengine/enrich/lookup.py
__gt__
¶
__gt__(other: EnrichmentData)
Source code in psengine/enrich/lookup.py
__hash__
¶
Source code in psengine/enrich/lookup.py
__repr__
¶
Source code in psengine/enrich/lookup.py
__str__
¶
Source code in psengine/enrich/lookup.py
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|