Modelcore
Denning's intrusion detection model
Also called IDES model.
Profiles each subject by statistical metrics of its audit records and flags records that deviate from the profile.
Denning's intrusion detection model describes a monitor that watches the audit records of a system and keeps, for each user and each object, statistics of normal use. A record that makes a statistic fall far outside its usual range raises an anomaly. The model rests on one hypothesis: that security violations show as abnormal patterns of use. Denning (1987) stated it independently of any system, application or type of intrusion, and it was the basis of the Intrusion Detection Expert System (IDES) at SRI International. The model is the starting point of anomaly based intrusion detection. It describes how a defender observes a system, and it needs no knowledge of how any attack works.
The machine
The observer here is the monitor, not the attacker. Its state has six components.
- Subjects. The initiators of activity, normally users and the processes that act for them.
- Objects. The resources that the system manages: files, programs, messages, records, devices.
- Audit records. One record for each action of a subject on an object, the 6-tuple Subject, Action, Object, Exception-Condition, Resource-Usage, Time-stamp. Each record names a single object, so a command that copies one file to another produces several records, for example an execute, a read and a write.
- Profiles. Structures that describe the normal behavior of subjects on objects by statistical metrics and models.
- Anomaly records. The output, the 3-tuple Event, Time-stamp, Profile, where the event is "audit" when a record caused it and "period" when the end of a time period caused it.
- Activity rules. Actions that run when a record arrives, an anomaly is found or a period ends.
The audit records of one period form an audit matrix, in analogy with the access matrix: the rows are subjects, the columns are objects, and a cell holds the actions performed, not the actions authorized.
A profile is a 10-tuple Variable-Name, Action-Pattern, Exception-Pattern, Resource-Usage-Pattern, Period, Variable-Type, Threshold, Subject-Pattern, Object-Pattern, Value. The patterns select the records that update the profile. The variable type names a metric and a statistical model. The value field holds the current statistics, so a profile needs a constant amount of memory, whatever the number of past records.
The four kinds of activity rule are: the audit record rule, which updates the matching profiles and checks for anomalies; the periodic activity update rule, which updates profiles at the end of a period; the anomaly record rule, which reports anomalies to the security officer; and the periodic anomaly analysis rule, which makes summary reports. The audit record rule, with the mean and standard deviation model, works as follows.
AUDIT-RECORD-RULE(R, profiles, d) ▷ R: an audit record; d: a number of deviations- 1
for each profile Pr whose patterns match R do - 2
x ← the value of the metric of Pr for R - 3
(n, sum, sumsquares) ← the value field of Pr - 4
if n ≥ 2 then - 5
mean ← sum / n ; stdev ← sqrt((sumsquares - n · mean²) / (n - 1)) - 6
if |x - mean| > d · stdev then emit anomaly record (audit, time of R, Pr) - 7
the value field of Pr ← (n + 1, sum + x, sumsquares + x²)
Line L5 uses the usual sample standard deviation. Denning's paper gives the same idea with the running sums. A variation weights recent values more, so the profile follows slow changes in behavior.
What it counts
Metrics. A metric is a random variable that measures some activity over a period. Denning defines three kinds.
- Event counter. The number of records that satisfy a property in a period, for example the number of logins in an hour or of password failures in a minute.
- Interval timer. The time between two related events, for example between two logins of the same user.
- Resource measure. The amount of a resource used in a period, for example CPU time or the number of pages printed. It uses the Resource-Usage field of the records.
Statistical models. Given past observations , a model decides if a new observation is abnormal.
- Operational. Compare with fixed limits, for example more than 10 password failures in a short period. The limits come from experience, so this is a heuristic.
- Mean and standard deviation. Flag outside . By Chebyshev's inequality, for any distribution with that mean and standard deviation, the probability of a value outside the interval is at most , so at most for . This is a theorem, but it bounds the false alarm rate only if the past values come from the same distribution as the new one.
- Multivariate. The same test on correlations of two or more metrics, for example CPU time and input and output of a program.
- Markov process. For event counters, treat each type of record as a state and flag a transition whose probability under the observed transition frequencies is too low.
- Time series. Take the order and the arrival times of the observations into account, and flag a value whose probability at that time is too low.
Example. A profile counts the password failures per session of one user. The last 10 sessions had 0, 1, 0, 0, 2, 1, 0, 0, 1 and 0 failures, so , the sum is 5, the sum of squares is 7, the mean is and the sample standard deviation is . With , the interval is . A session with 5 failures is flagged. A session with 3 failures is not. The counts are made up.
Cost. Each record costs work per matching profile on the word RAM, plus the cost of finding the matching profiles. The memory is per profile. The number of profiles is the real cost: one per subject and object pair can be too many, so Denning proposes profiles for classes of subjects and objects and templates that create a profile when it is first needed.
Relation to other models
- Misuse detection. Misuse detection encodes known attacks and needs no profile. Denning's model encodes normal use and needs no knowledge of attacks. Many systems, including IDES, combine both: IDES had a statistical part and a rule based expert system.
- Anomaly detection. The model is an instance of the anomaly detection problem, with one simple score per metric and a threshold on it. Later work replaces the score by richer models, such as windows of system calls in system call sequence detection or byte distributions in payload anomaly detection.
- Change detection. The periodic rules watch for a shift of a metric over time. A sequential test such as CUSUM is the formal tool for such a shift.
- Access control. The audit matrix is the access matrix with "performed" in place of "authorized". A monitor that compares the two finds actions that are authorized but unusual.
Known results in the model
- Chebyshev bound (theorem). The mean and standard deviation model with deviations raises a false alarm on a new value with probability at most , if the new value has the same mean and variance as the past ones. Nothing in the bound says that an attack lies outside the interval.
- Base rates (theorem). Because intrusive records are a tiny fraction of all records, a false alarm rate of per test can still make most alarms false. See the base-rate fallacy.
- Evasion by slow change (heuristic). A user, or an attacker who controls an account, can shift a profile step by step, because each new value updates the statistics. Weighting recent values speeds up this drift. Denning lists escape "through gradual modifications of behavior" as an open problem, together with intrusions that use low-level features that are not monitored.
- Open questions. Denning leaves open whether the approach is sound (whether anomalies caused by intrusions can be told from other anomalies), how complete it is, and what its social effects on the monitored users are. These are questions for measurement, not results of the model.
References
- Dorothy E. Denning, An intrusion-detection model, IEEE Transactions on Software Engineering 13(2), 1987, pages 222 to 232, the six components (subjects, objects, audit records, profiles, anomaly records and activity rules), the 6-tuple audit record, the three kinds of metric, the five statistical models with the Chebyshev bound for the mean and standard deviation model, the 10-component profile, and the four kinds of activity rule
- James P. Anderson, Computer security threat monitoring and surveillance, technical report, James P. Anderson Company, Fort Washington, Pennsylvania, 1980, the proposal to use audit trails and statistics of normal use to find penetrators
- Harold S. Javitz and Alfonso Valdes, The SRI IDES statistical anomaly detector, IEEE Symposium on Security and Privacy 1991, pages 316 to 326, the statistical component of IDES that grew out of the model
- Herve Debar, Marc Dacier and Andreas Wespi, Towards a taxonomy of intrusion-detection systems, Computer Networks 31(8), 1999, pages 805 to 822, the place of statistical profiles among behavior-based methods
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 3GENTC Edit this page History Report an error Markdown