Skip to main content

AnalyzeTimestampIntervals

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Analyze a list of Unix timestamps in milliseconds, to detect simple patterns of consistency or high frequency. The script can aid in the investigation of multi-event alerts that contain a list of timestamps.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


Argument NameDescription
timestampsList of Unix timestamps (in milliseconds) representing time intervals.
max_intervals_per_windowThe maximum number of intervals allowed within a specific time window.
interval_consistency_thresholdThe threshold for determining how consistent the intervals are (in seconds).
verboseIf true, includes detailed interval information in the output.

Outputs#


PathDescriptionType
IntervalAnalysis.TimestampCountThe total number of timestamps analyzed.number
IntervalAnalysis.MeanIntervalInSecondsThe average time interval (in seconds) between consecutive timestamps.number
IntervalAnalysis.MedianIntervalInSecondsThe median time interval (in seconds) between consecutive timestamps.number
IntervalAnalysis.StandardDeviationInSecondsThe standard deviation of the time intervals (in seconds) between consecutive timestamps.number
IntervalAnalysis.HighFrequencyDetectedIndicates whether a high frequency of intervals within a short time window was detected.boolean
IntervalAnalysis.ConsistentIntervalsDetectedIndicates whether the intervals between timestamps were consistent based on the standard deviation threshold.boolean
IntervalAnalysis.IsPatternLikelyAutomatedIndicates whether the pattern of intervals is likely automated based on analysis. Intervals with high frequency or consistency can suggest the use of an automation.boolean