AddDBotScoreToContext
Add DBot score to context for indicators with custom vendor, score, reliability, and type.
python · Common Scripts
Source
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): indicator = demisto.args().get("indicator") indicatorType = demisto.args().get("indicatorType") score = int(demisto.args().get("score")) vendor = demisto.args().get("vendor") reliability = demisto.args().get("reliability", None) dbotscore = {"Indicator": indicator, "Type": indicatorType, "Vendor": vendor, "Score": score, "Reliability": reliability} command_results = CommandResults(outputs_prefix="DBotScore", outputs=dbotscore) return_results(command_results) if __name__ == "__builtin__" or __name__ == "builtins": main()
README
Add DBot score to context for indicators with custom vendor, score, reliability, and type.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | |
| Cortex XSOAR Version | 6.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| indicator | The indicator value (ex 1.1.1.1) |
| indicatorType | The indicator type (ex ip, url, email, domain) |
| score | The indicator score |
| vendor | The vendor to assign to this DBotScoreEntry |
| reliability | The reputation reliability |
Outputs
There are no outputs for this script.