Class DenialSummary
- Namespace
- Openshell.V1
- Assembly
- OpenShell.Sdk.dll
Structured denial summary from sandbox aggregator.
public sealed class DenialSummary : IMessage<DenialSummary>, IEquatable<DenialSummary>, IDeepCloneable<DenialSummary>, IBufferMessage, IMessage
- Inheritance
-
DenialSummary
- Implements
-
IMessage<DenialSummary>IDeepCloneable<DenialSummary>IBufferMessageIMessage
- Inherited Members
Constructors
DenialSummary()
public DenialSummary()
DenialSummary(DenialSummary)
public DenialSummary(DenialSummary other)
Parameters
otherDenialSummary
Fields
AncestorsFieldNumber
Field number for the "ancestors" field.
public const int AncestorsFieldNumber = 5
Field Value
BinaryFieldNumber
Field number for the "binary" field.
public const int BinaryFieldNumber = 4
Field Value
BinarySha256FieldNumber
Field number for the "binary_sha256" field.
public const int BinarySha256FieldNumber = 13
Field Value
CountFieldNumber
Field number for the "count" field.
public const int CountFieldNumber = 9
Field Value
DenialStageFieldNumber
Field number for the "denial_stage" field.
public const int DenialStageFieldNumber = 15
Field Value
DenyReasonFieldNumber
Field number for the "deny_reason" field.
public const int DenyReasonFieldNumber = 6
Field Value
FirstSeenTimeFieldNumber
Field number for the "first_seen_time" field.
public const int FirstSeenTimeFieldNumber = 107
Field Value
HostFieldNumber
Field number for the "host" field.
public const int HostFieldNumber = 2
Field Value
L7InspectionActiveFieldNumber
Field number for the "l7_inspection_active" field.
public const int L7InspectionActiveFieldNumber = 17
Field Value
L7RequestSamplesFieldNumber
Field number for the "l7_request_samples" field.
public const int L7RequestSamplesFieldNumber = 16
Field Value
LastSeenTimeFieldNumber
Field number for the "last_seen_time" field.
public const int LastSeenTimeFieldNumber = 108
Field Value
PersistentFieldNumber
Field number for the "persistent" field.
public const int PersistentFieldNumber = 14
Field Value
PortFieldNumber
Field number for the "port" field.
public const int PortFieldNumber = 3
Field Value
SampleCmdlinesFieldNumber
Field number for the "sample_cmdlines" field.
public const int SampleCmdlinesFieldNumber = 12
Field Value
SandboxIdFieldNumber
Field number for the "sandbox_id" field.
public const int SandboxIdFieldNumber = 1
Field Value
SuppressedCountFieldNumber
Field number for the "suppressed_count" field.
public const int SuppressedCountFieldNumber = 10
Field Value
TotalCountFieldNumber
Field number for the "total_count" field.
public const int TotalCountFieldNumber = 11
Field Value
Properties
Ancestors
Process ancestor chain.
public RepeatedField<string> Ancestors { get; }
Property Value
- RepeatedField<string>
Binary
Binary that attempted the connection.
public string Binary { get; set; }
Property Value
BinarySha256
SHA-256 of the binary for audit trail.
public string BinarySha256 { get; set; }
Property Value
Count
Number of denials in the current window.
public uint Count { get; set; }
Property Value
DenialStage
Denial category: "l4_deny", "l7_deny", "l7_audit", "ssrf".
public string DenialStage { get; set; }
Property Value
DenyReason
Denial reason from OPA evaluation.
public string DenyReason { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
FirstSeenTime
Time of the first denial.
public Timestamp FirstSeenTime { get; set; }
Property Value
- Timestamp
Host
Denied destination host.
public string Host { get; set; }
Property Value
L7InspectionActive
True if L7 inspection was active during observation window.
public bool L7InspectionActive { get; set; }
Property Value
L7RequestSamples
Observed HTTP request patterns (from L7 inspection).
public RepeatedField<L7RequestSample> L7RequestSamples { get; }
Property Value
- RepeatedField<L7RequestSample>
LastSeenTime
Time of the most recent denial.
public Timestamp LastSeenTime { get; set; }
Property Value
- Timestamp
Parser
public static MessageParser<DenialSummary> Parser { get; }
Property Value
- MessageParser<DenialSummary>
Persistent
True if emitted by stale-flush rather than threshold.
public bool Persistent { get; set; }
Property Value
Port
Denied destination port.
public uint Port { get; set; }
Property Value
SampleCmdlines
Distinct cmdline strings observed (sanitized of credentials).
public RepeatedField<string> SampleCmdlines { get; }
Property Value
- RepeatedField<string>
SandboxId
Sandbox ID that produced this summary.
public string SandboxId { get; set; }
Property Value
SuppressedCount
Events dropped during aggregator cooldown.
public uint SuppressedCount { get; set; }
Property Value
TotalCount
Cumulative lifetime count (never resets).
public uint TotalCount { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public DenialSummary Clone()
Returns
- DenialSummary
A deep clone of this object.
Equals(DenialSummary)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DenialSummary other)
Parameters
otherDenialSummaryAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(DenialSummary)
Merges the given message into this one.
public void MergeFrom(DenialSummary other)
Parameters
otherDenialSummary
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.