Vultron Case State Behaviors
vultron.bt.case_state.conditions
This module defines CVD Case State conditions as Behavior Tree nodes.
cs_in_state_attacks_observed(obj)
True when attacks against the vulnerability have been observed
Source code in vultron/bt/case_state/conditions.py
93 94 95 96 97 98 |
|
cs_in_state_exploit_public(obj)
True when an exploit is public for the vulnerability
Source code in vultron/bt/case_state/conditions.py
79 80 81 82 83 84 |
|
cs_in_state_fix_deployed(obj)
True when the fix has been deployed
Source code in vultron/bt/case_state/conditions.py
55 56 57 |
|
cs_in_state_fix_ready(obj)
True when the vendor has a fix ready
Source code in vultron/bt/case_state/conditions.py
44 45 46 |
|
cs_in_state_public_aware(obj)
True when the public is aware of the vulnerability
Source code in vultron/bt/case_state/conditions.py
66 67 68 69 70 |
|
cs_in_state_vendor_aware(obj)
True when the vendor is aware of the vulnerability
Source code in vultron/bt/case_state/conditions.py
31 32 33 34 35 |
|
vultron.bt.case_state.transitions
This module defines the CVD Case State Machine as a Behavior Tree.
cs_state_change(name, target_state=None)
Factory function to create a class for transitioning to a new CS state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
the name of the class |
required |
target_state |
str
|
the target state shorthand for the transition (V,F,D,P,X,A) |
None
|
Returns:
Type | Description |
---|---|
Type[ActionNode]
|
A class for transitioning to the given state |
Source code in vultron/bt/case_state/transitions.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|