Target
sereto.models.target
¶
TargetDastModel
¶
Bases: TargetModel
Model representing a target which is characterized by IP address.
Source code in sereto/models/target.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
TargetModel
¶
Bases: SeretoBaseModel
Base class for model representing the details of a target.
Attributes:
Name | Type | Description |
---|---|---|
id |
str | None
|
Unique identifier for the target, optional. |
category |
str
|
The category of the target. |
name |
str
|
The name of the target (e.g. DAST, SAST). |
locators |
list[LocatorModel]
|
List of locators for the target, such as URLs or IP addresses, source code files, etc. |
Source code in sereto/models/target.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
uname
property
¶
Unique name for the target instance (version is not included).
TargetSastModel
¶
Bases: TargetModel
Model representing the details of the 'sast' category.
Attributes:
Name | Type | Description |
---|---|---|
code_origin |
Literal['vcs', 'archive'] | None
|
where we obtained the code - Version Control System or archive (ZIP/TAR/...) |
code_origin_name |
str | None
|
origin details - e.g. "Gitlab" or "project_source.zip" |
code_integrity |
dict[str, str]
|
dictionary containing file name with hash type as the key and corresponding hash as the value |
source_code_analyzer_files |
list[str]
|
additional files from source code analyzers (like Fortify SCA or Sonarqube) |
Source code in sereto/models/target.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|