Skip to main content

ControlPrimitive

Enum ControlPrimitive 

Source
pub enum ControlPrimitive {
Show 24 variants Owns, WriteDacl, WriteOwner, GenericAll, GenericWrite, AllExtendedRights, ForceChangePassword, AddMember, AddSelfToGroup, AddKeyCredential, WriteRbcd, WriteSpn, WriteAltSecurityIdentities, WriteAllowedToDelegateTo, WriteGpLink, ReadGmsaPassword, ReadLapsPassword, DcsyncGetChanges, DcsyncGetChangesAll, DcsyncGetChangesFiltered, ReanimateTombstones, Enroll, CreateDmsa, CreateChild(Option<Guid>),
}
Expand description

A concrete thing a trustee can do to an object, derived from one ACE.

Variants§

§

Owns

Owner of the object — can rewrite its DACL at will.

§

WriteDacl

WRITE_DAC — can grant itself anything else.

§

WriteOwner

WRITE_OWNER — can take ownership, then rewrite the DACL.

§

GenericAll

GENERIC_ALL / full control.

§

GenericWrite

GENERIC_WRITE, or unscoped WRITE_PROP — can write every attribute.

§

AllExtendedRights

Unscoped CONTROL_ACCESS — holds every extended right, DCSync included.

§

ForceChangePassword

User-Force-Change-Password.

§

AddMember

Write member — add any principal to the group.

§

AddSelfToGroup

Validated write on member — add itself to the group.

§

AddKeyCredential

Write msDS-KeyCredentialLink — Shadow Credentials.

§

WriteRbcd

Write msDS-AllowedToActOnBehalfOfOtherIdentity — resource-based constrained delegation.

§

WriteSpn

Write servicePrincipalName — make the account Kerberoastable (targeted roasting).

§

WriteAltSecurityIdentities

Write altSecurityIdentities — bind an attacker certificate to the account.

§

WriteAllowedToDelegateTo

Write msDS-AllowedToDelegateTo — constrained delegation with protocol transition.

Write gPLink — attach a hostile GPO to the container.

§

ReadGmsaPassword

Read the gMSA managed-password blob — derive the account’s keys.

§

ReadLapsPassword

Read a LAPS password attribute — local administrator on that machine.

§

DcsyncGetChanges

DS-Replication-Get-Changes.

§

DcsyncGetChangesAll

DS-Replication-Get-Changes-All — the half that carries secrets.

§

DcsyncGetChangesFiltered

DS-Replication-Get-Changes-In-Filtered-Set.

§

ReanimateTombstones

Reanimate-Tombstones — resurrect deleted objects.

§

Enroll

Certificate-Enrollment / Certificate-AutoEnrollment on a template.

§

CreateDmsa

Create a delegated MSA under this container (BadSuccessor).

§

CreateChild(Option<Guid>)

CREATE_CHILD, optionally scoped to one object class GUID.

Implementations§

Source§

impl ControlPrimitive

Source

pub fn name(self) -> &'static str

Stable identifier, usable as a graph edge label.

Source

pub fn cost(self) -> u32

Attacker cost of traversing this primitive. Lower = cheaper = more dangerous.

0 — already equivalent to control (no action needed). 1 — one write/read and the target is owned. 2 — needs a second step (a coerced auth, a TGT request, a roast). 3 — noisy or slow (offline cracking, waiting for a GPO refresh).

Source

pub fn impact(self) -> &'static str

What the attacker gets out of it — the impact line of a report.

Source

pub fn mitigation(self) -> &'static str

The defensive counterpart — the defence line of a report.

Trait Implementations§

Source§

impl Clone for ControlPrimitive

Source§

fn clone(&self) -> ControlPrimitive

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ControlPrimitive

Source§

impl Debug for ControlPrimitive

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for ControlPrimitive

Source§

impl From<ControlPrimitive> for EdgeKind

Source§

fn from(p: ControlPrimitive) -> Self

Converts to this type from the input type.
Source§

impl Hash for ControlPrimitive

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ControlPrimitive

Source§

fn eq(&self, other: &ControlPrimitive) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ControlPrimitive

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.