Automatic transformation of security event detection rules

Information

  • Patent Grant
  • 10049220
  • Patent Number
    10,049,220
  • Date Filed
    Wednesday, December 13, 2017
    7 years ago
  • Date Issued
    Tuesday, August 14, 2018
    6 years ago
Abstract
A computer-implemented method for transformation of security information and event management (SIEM) rules and deploying the SIEM rules in a network of event processors. A computer system or server converts the SIEM rules to formal representations. The computer system or server generates rule abstraction of the formal representations, by using an abstraction function. The computer system or server constructs a finite automaton based on the rule abstraction. The computer system or server eliminates irrelevant transitions in the finite automaton to generate an optimized finite automaton. The computer system or server generates optimized formal rules, based on the optimized finite automaton. The computer system or server converts the optimized formal rules to optimized SIEM rules. The computer or server deploys the optimized SIEM rules in the network of the event processors.
Description
BACKGROUND

The present invention relates generally to network security, and more particularly to automatic transformation of security event detection rules.


SIEM (Security Information and Event Management) events are processed by event processors (EPs) distributed across a network. Each of the event processors (EPs) is directly connected to one or more event sources (ESs) which raise events to the each of the event processors (EPs). Each of the event processors (EPs) carries a set of rules. When events from locally connected event sources (ESs) are processed, the set of rules are applied. When a security violation is detected, the event processor (EP) raises a security alert.


In distributed SIEM (Security Information and Event Management), when an event processor (EP) applies the rules, event processors (EPs) may need to be aware of events raised at remotes event processors (EPs). In this case, the EPs have to properly communicate with each other to share event information. If every event information is shared among the EPs, it often leads to poor performance due to substantial network traffic and redundant event processing on the EPs. This is the most challenging part of distributed SIEM (Security Information and Event Management).


SUMMARY

A computer-implemented method for transformation of security information and event management (SIEM) rules and deploying the SIEM rules in a network of event processors is provided. The method is implemented by a computer system or a server. The computer-implemented method comprises converting the SIEM rules to formal representations; generating rule abstraction of the formal representations, by using an abstraction function; constructing a finite automaton based on the rule abstraction; eliminating irrelevant transitions in the finite automaton to generate an optimized finite automaton; generating optimized formal rules, based on the optimized finite automaton; converting the optimized formal rules to optimized SIEM rules; and deploying the optimized SIEM rules in a network of event processors. In the computer-implemented method, the optimized formal rules are defined for all of the event processors in the network, by assuming a single event processor without considering distribution of the event processors. In the computer-implemented method, the event processors share a state of a finite state machine, an event incurs a state transition of the finite state machine. In the computer-implemented method, when the state transition changes the state of the finite state machine, the event is passed to one or more remote event processors in the network. In the computer-implemented method, when the state transition does not change the state of the finite state machine, the event is consumed by a local event processor and is not passed to one or more remote event processors in the network. In the computer-implemented method, the state of the finite state machine is one of three categories: a normal and non-critical state, a normal but critical state, and an abnormal state. In the computer-implemented method, the state does not change to the abnormal state if the state is the normal and non-critical state. In the computer-implemented method, the state changes to the abnormal state if the state is the normal but critical state. In the computer-implemented method, an alert is raised if the state is the abnormal state.





BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS


FIG. 1 is a diagram showing a set of rules defined by assuming a single event processor and the set of rules copied/shared by a plurality of event processors, in accordance with one embodiment of the present invention.



FIG. 2 is a diagram showing state machine abstraction of rules, in accordance with one embodiment of the present invention.



FIG. 3 is a diagram showing steps of transformation of SIEM (Security Information and Event Management) rules and deploying the rules in a network of event processors, in accordance with one embodiment of the present invention.



FIG. 4 is a diagram showing a system in a first use case, in accordance with one embodiment of the present invention.



FIG. 5 is a diagram showing formal rules ϕ and ϕ, in accordance with one embodiment of the present invention.



FIG. 6 is a diagram showing formal rules ϕ and ϕ with temporal logic, in accordance with one embodiment of the present invention.



FIG. 7 is a diagram showing the semantics of the finite state machine in the first use case shown in FIG. 4, in accordance with one embodiment of the present invention.



FIG. 8 is a diagram showing optimized formal rules for state transitions in FIG. 7 in a first use case, in accordance with one embodiment of the present invention.



FIG. 9 is a diagram showing a system in a second use case, in accordance with one embodiment of the present invention.



FIG. 10 is a diagram showing a timed automaton in the second use case shown in FIG. 9, in accordance with one embodiment of the present invention.



FIG. 11 is a diagram showing a system in a third use case, in accordance with one embodiment of the present invention.



FIG. 12 is a diagram showing a finite automaton in the third use case shown in FIG. 11, in accordance with one embodiment of the present invention.



FIG. 13 is a diagram illustrating components of a computer device for automatic transformation of security event detection rules and deploying the rules in a network of event processors or a computer device hosting one or more event processors and/or Security Information and Event Management (SIEM) rules, in accordance with one embodiment of the present invention.





DETAILED DESCRIPTION

In embodiments of the present invention, rules for processing event sources (ESs) should be defined without considering distribution of event processors (EPs) but just by assuming a single EP. Events raised to an EP are shared by remote EPs only when it is necessary for the event processing on the remote EPs so that network traffic is minimized and event processing redundancy is eliminated.



FIG. 1 is a diagram showing a set of rules defined by assuming single event processor 111 and the set of rules copied/shared by a plurality of event processors (131, 132, and 133), in accordance with one embodiment of the present invention. As shown in 110, a set of rules (denoted by numeral 112) are defined by assuming a single EP (denoted by numeral 111). Block 120 and block 130 show correspondence from each ES to a particular EP; therefore, when an event e is raised by an ES, the system can detect which EP directly receives/processes the event e. Shown in block 120 and block 130, event source 1 (ES1) corresponds to event processor 1 (EP1 131), event source 2 (ES2) also corresponds to event processor 1 (EP1 131), event source 3 (ES3) corresponds to event processor 2 (EP2 132), event source 4 (ES4) also corresponds to event processor 2 (EP2 132), and event source 5 (ES5) corresponds to event processor 3 (EP3 133). EP1 131 directly receives/processes the event e which is from ES1.



FIG. 1 further shows the set of rules (denoted by numeral 112) are copied or shared by event processor 1 (EP1 131), event processor 2 (EP1 132), and event processor 3 (EP1 133). The set of rules (denoted by numeral 112) are defined to minimize inter-EPs communication.



FIG. 2 is a diagram showing state machine abstraction of rules, in accordance with one embodiment of the present invention. The rules are abstracted to a finite state machine that has the following characteristics. (1) Each of event processors (such as EP1 131, EP1 132, and EP1 133 shown in FIG. 1) carries a copy of the finite state machine which keeps tracking events processed on the each of the event processors. (2) Each state represents what really needs to be observed across event processors. (3) Each event incurs a state transition on the finite state machine.


When the state transition actually changes the state, the event (for example the event e shown in FIG. 1) is passed to one or more remote event processors. Therefore, all the event processors (such as EP1 131, EP2 132, and EP3 133 shown in FIG. 1) share the same state which has been changed. When the state transition does not change the state, the event is just consumed by the local EP (such as EP1 131 shown in FIG. 1) and is not passed to remote EPs (such as EP2 132 and EP3 133 shown in FIG. 1). By defining a finite state machine properly, the inter-EP communication (shown in FIG. 1) can be reduced so that events are passed across EPs only when necessary.



FIG. 2 shows an example of state machine abstraction of rules. The finite state machine is encoded as rules (230). The initial states of EP1 (210) and EP2 (220) are “e1_never_raised” (211 and 221). If the state of EP1 (210) is “e1_never_raised” (211), when EP1 (210) receives the event e1, EP1 (210) changes the state to “e1_raised” (212) and notifies EP2 (220) of the change of the finite state machine. Upon receiving the notification from EP1 (210), EP2 (220) synchronizes its state to “e1_raised” (222), so that both EP1 (210) and EP2 (220) point to “e1_raised” (212 and 222) as their current states. If the state of EP1 (210) is “e1_raised” (212), when EP1 (210) receives the event e1, EP1 (210) consumes the event e1 just locally.


If the state of EP2 (220) is “e1_never_raised” (221), when EP1 (210) receives the event e2, EP2 (220) consumes the event e2 just locally. If the state of EP2 (220) is “e1_raised” (222), when EP2 (220) receives the event e2, EP2 (220) changes its state from “e1_raised” (222) to “on_alert” (223) and notifies EP1 (210) of the change of the finite state machine. Further, as soon as the state is changes, EP2 (220) raises a security alert.



FIG. 3 is a diagram showing steps of transformation of SIEM (Security Information and Event Management) rules and deploying the rules in a network of event processors, in accordance with one embodiment of the present invention. In one embodiment, the transformation of the SIEM (Security Information and Event Management) rules is implemented by a computer system or server, and then the rules are deployed in the network of the event processors shown in FIG. 1. At step 301, the computer system or server converts the SIEM (Security Information and Event Management) rules to formal representations. At this step, the input is the SIEM rules and the output is the formal rules. Through this step, the SIEM rules are represented by logical formulas and transformed into a system of equations. The logical formulas and the system of equations will be discussed in detail with reference to use cases in latter paragraphs of this document. For the first use case described in later paragraphs, the output of step 301 is as

ldap(t,printer, . . . )→offence when ∃t′<t·fw(t′,host, . . . )∈past_event


At step 302, the computer system or server generates rule abstraction of formal rules using an abstraction function. At this step, the inputs are the formal rules and the abstraction function α, and the output is abstracted rules. Abstraction of the formal rules using the abstraction function α simplifies the rules with no negative impact on the soundness of the rules. It is assumed that the abstraction function α is provided as a part of inputs to this step. For instance, the abstraction function α employed does conversion of events to alphabets, along with conditions to regular-expression matches. The input of the abstraction function α is as

name(_,host,_)custom charactera unqiue alphabet
condition custom characterregular expression match.

The output of the abstraction is as

b→offence when abstracted_past_event˜/.*a.*/

For the first use case described in later paragraphs,

fw(_,printer,_)custom character‘a’

and

ldap(_,printer,_)custom character‘b’
custom charactert′<t.fw(t′,printer, . . . )ϵpast_event custom characterabstracted_past_event˜/.*a.*/


At step 303, the computer system or server constructs a finite automaton. At this step, the input is the abstracted rules and the output is a single finite automaton (FA). The abstract rules are transformed into a state transition system (finite-state automaton). Rule processing using this FA has the following properties. (1) Soundness: If no offence is raised on the FA, it is guaranteed that rule processing with the original rules raise no offence. (2) Further simplification: If a transition does not change states, the transition (and the corresponding rule) can be safely eliminated without affecting the semantics of the rules. The mathematical expressions of the finite automaton are as follows.

states={q1,q2,offensive_raised}

where q1 and q2 respectively correspond with /.*a.*/ and complement (/.*a.*/)=/[^a]*/. Since an empty string (″) does not match /.*a.*/, initial states=q2

transitions={t1,t2,t3,t4)

where

t1:q1custom characteroffence_raise (∵rule)
t2:q2custom characterq2(∵append(/[^a]*/,‘b’)∩/.*a.*/=ϕ
t3:q1custom characterq1(∵append(/.*a.*/, ‘a’)∩/.*a.*/custom characterϕ
t4:q2custom characterq1(∵append(/[^a]*/,‘a’)∩/.*a.*/custom characterϕ


At step 304, the computer system or server eliminates irrelevant transitions. At this step, the input is the single finite automaton and the output is an optimized finite automaton. The mathematical expressions of elimination of irrelevant transitions are as follows.

transitions={t1,t4)

t2 and t3 have been removed since (1) each of them remains in the same state and (2) they have no corresponding rules.


At step 305, the computer system or server generates optimized formal rules. At step 305, the inputs are the optimized finite automaton generated at step 304 and the formal rules generated at step 301. Another input is the mapping function m:

rule custom characterevent processor

The outputs of step 305 are optimized formal rules. For the first use case described in later paragraphs, an optimized version of the original formal rule for t1 is

ldap(t,printer, . . . )→offence when state=q1

and a newly generated optimized version of the original formal rule for t4 and mapped to m(fw(t, printer, . . . )→ . . . ) is

fw(t,printer, . . . )→state: =q1 when state=q2

where m(fw(t, host, . . . )→ . . . )=the nearest event processor from the host.


At step 306, the computer system or server converts the optimized formal rules to optimized SIEM (Security Information and Event Management) rules. At this step, the input is the optimized formal rules and the output is the optimized STEM (Security Information and Event Management) rules.


At step 307, the computer system or server deploys the optimized STEM (Security Information and Event Management) rules in a network of event processors. The optimized SIEM rules are distributed over in a network of event processors and copied/shared by a plurality of event processors. For example, the computer system or server deploys the optimized SIEM (Security Information and Event Management) rules in event processor 1 (EP1 131), event processor 2 (EP1 132), and event processor 3 (EP1 133) in the network shown in FIG. 1.



FIG. 4 is a diagram showing system 400 in a first use case, in accordance with one embodiment of the present invention. System 400 includes network printer 401, IoT (Internet of Things) gateway 402, SIEM (Security Information and Event Management) server 403, and LDAP (Lightweight Directory Access Protocol) server 404. IoT gateway 402 is an event processor EP1 and SIEM server 403 is another event processor EP2. Network printer 401 is an event source (ES1) corresponding to event processor EP1 (IoT gateway 402); LDAP server 404 is another event source (ES2) corresponding to event processor EP2 (STEM server 403). It is an objective of system 400 to detect illegal/unauthorized update of the firmware of network printer 401 and its exploitation for intrusion to LDAP server 404. The SIEM Rule for the detection is as follows: for each access from network printer 401 to LDAP server 404, if the firmware of network printer 401 has ever been updated, then offence is raised because the firmware may have been illegally updated.


As shown in FIG. 3, at step 301, the STEM (Security Information and Event Management) rules are converted to formal representations. For example, for a given SIEM rule, when network printer 401 emits an LDAP lookup event and when printer emitted a firmware update event in the past, then an offence is raised. Thus, the SIEM rule (semi-formal) is as follows:

ldap(t,printer, . . . )→offence when ∃t′<t·fw(t′,printer, . . . )∈past_event

Note that the “when . . . ” part of this rule can be regarded as a “critical condition”, that is, if this condition holds when a LDAP event occurs, the system will no longer stay in the normal state but turn into the abnormal (or “error”) state.


More specifically, this can be rephrased as: (1) If a “fw” (firmware) event has occurred in the past (P) and the latest event is “ldap” (Q), then the system no longer stays in the normal state. (2) If this is not the case, the system stays in the normal state. Based on this, the normal state can be defined as:

¬(P∧Q)≡¬P∨¬Q≡¬P∨(P∧¬Q)

The normal state is further divided into two following cases. (1) Non-Critical ϕ: No “fw” (firmware) event has ever occurred (¬P). It is defined that ϕ=¬P. (2) Critical ϕ: one or more “fw” (firmware) event have occurred (P) although the latest event is not “ldap” (¬Q). It is defined that ϕ=P∧¬Q. Thus, the normal state can be equivalently defined as ϕVϕ. The abnormal state (ψ) is defined as ψ=¬(ϕVϕ). The above description is illustrated in FIG. 5. States are divided into three categories: a normal and noncritical state, a normal but critical state, and an abnormal state. For a normal and noncritical state, it is unlikely that the state changes to an abnormal state; for a normal but critical state, the state is about to change to an abnormal state; for an abnormal state, an alert should be raised.


Temporal logic is a well-known formalism for specifying relations between timed events. So, it seems natural to employ it to define rules formally. However, it turns out to be not that easy because of the following reasons. (1) Temporal logic is basically for defining and analyzing open-ended systems, that is, temporal formulas are supposed to hold at every moment of time (including future), whereas security rules focus on relations the past events and the current event. (2) Normality and abnormality are not distinguished in temporal logic. Thus, it is very difficult to capture “criticality” in temporal logic.


Among ϕ, ϕ, and e, ϕ (non-critical condition) can be regarded as an open-ended property for staying non-critical. Thus, it is convenient to define ϕ as a temporal formula. FIG. 6 is a diagram showing formal rules ϕ and ϕ with temporal logic. In FIG. 6, □ is called temporal “always” operator. □¬(fw_updated) means that “up until now, the system has never been in the ‘fw_updated’ state”.


Given a sequence of the past events esP and the latest event e, the predicates ϕ and ϕ are defined as follows:







ϕ


(


es
P

,
e

)


=

{







ϕ


(

es
P

)


,




e

ldap








ϕ
_



(

es
P

)


,




e
=
fw











ϕ
_



(


es
P

,
e

)



=






ϕ
_



(

es
P

)


,




e

fw










As shown in FIG. 3, at step 302, the rule abstraction of formal rules is generated by using an abstraction function. Let us consider that each of ϕ and ϕ represents the event sequences for which it holds. ϕ is regarded to represents {es|ϕ(es)}. The abstraction aims to eliminate distinction between ϕ(esP) and ϕ(esP), etc, that is the abstraction makes it possible to regard both ϕ(esP) and ϕ(esP) as

ϕα={esαα(esα)}.

Based on this, the following system of recursive equations is derived.

ϕαα·e(e≠ldap)
ϕαα·fw
ϕα=ϕα·e(e≠fw)

where “·” in the above equations denotes the concatenation operator. By solving the above equations (i.e., maximal fixed point solution), ϕα and ϕα are obtained.


As shown in FIG. 3, the finite automaton is constructed at step 303 and the irrelevant transitions are eliminated at step 304. FIG. 7 is a diagram showing the semantics of the finite state machine in the first use case shown in FIG. 4, in accordance with one embodiment of the present invention. The initial state is “never updated” (701). When “fw_update” is raised, if the state is “never updated” (701), the finite state machine changes its state from “never updated” (701) to “fw update” (702). When “fw_update” is raised, if the state is “fw update” (702), the finite state machine just remains in “fw update” (702).


Referring to FIG. 7, when “ldap” is raised, if the state is “never updated” (701), the finite state machine just remains “never updated” (701). When “ldap” is raised, if the state is “fw update” (702), the finite state machine changes its state from “fw update” (702) to “on alert” (703) and raises a security alert.


Referring to FIG. 7, note that events denoted by numerals 704 and 705 can be eliminated because events 704 and 705 does not trigger state transitions. Thus, the optimized finite automaton is generated.


As shown in FIG. 3, at step 305, optimized formal rules are generated. Based on the derived state transitions shown in FIG. 7, a set of new rules are as follows. (1) Each event processor (e.g., event processor EP1 IoT gateway 402 and event processor EP2 SIEM server 403 shown in FIG. 4) carries a state indicating whether any “fw” event has ever occurred. (2) When one event processor (EP) encounters an event that leads to updating its state, the event is forwarded to the other event processors (EPs) so the states of the entire EPs are kept identical. FIG. 8 is a diagram showing optimized formal rules for state transitions in FIG. 7, in accordance with one embodiment of the present invention. For state transition T1 801 (in which the finite state machine changes its state from “fw update” to “on alert”), there are two rules: R1a and R1b. R1a: ldap→sate:=“on alert” when state=“fw update”. R1b: raise offence, when state=“on alert”. For state transition T2 802 and state transition T3 803, there is no rule generation. For state transition T4 804 (in which the finite state machine changes its state from “never updated” to “fw update”), rule R4 is fw update→sate:=“fw updated”, when state=“never updated”.


The generated optimized formal rules are distributed over in a network of event processors, such as event processor EP1 (IoT gateway 402) and event processor EP2 (SIEM server 403) in the first use case shown in FIG. 4.



FIG. 9 is a diagram showing system 900 in a second use case, in accordance with one embodiment of the present invention. The objective of system 900 is to detect possible dysfunction of surveillance camera (integrated with motion detector) 901. System 900 further comprises IC card reader or computer-based controlled access system (CAS) reader 902. As shown in FIG. 9, surveillance camera 901 is event source ES1 and IC card reader or CAS readers 902 are event sources ES2 and ES3. Surveillance camera 901 is an event source of gateway 903 which is event processor EP1. IC card reader or CAS readers 902 are connected to CAS server 905. System 900 further comprises SIEM (Security Information and Event Management) server 904. As shown in FIG. 9, SIEM server 904 receives motion events from gateway 903 and CAS events from CAS server 905.


The SIEM rule is as follows: For each entry event (or CAS event), if no motion detection has occurred within the last 1 minute, then an offence is raised due to potential anomaly of surveillance camera 901. The SIEM rule (semi-formal) is described as:

cas(t)→offence when ∀t′∈[t−1 min,t]·moton(t′)∈past_events


Note that the “when . . . ” part of the above rule can be regarded as a critical condition, that is, if this condition holds when a CAS event occurs, the system will no longer stay in a normal state but turn into an abnormal (or error) state. More specifically, this can be rephrased as follows: If no motion event has occurred within the last 1 minute (P) and a latest event is “lcas” (Q), then the system no longer stays in the normal state; If this is not the case, the system stays in the normal state. Based on this, the normal state can be defined as:

¬(P∧Q)≡¬P∨¬Q≡¬P∨(P∧¬Q)

The normal state is further divided into two following cases. (1) Non-Critical: One or more motion events have occurred in the last minutes (¬IP). (2) Critical: no motion event has occurred in the last minutes (P), though the latest event is not a CAS event (¬IQ). Let ϕ=P∧¬Q and ϕχ=¬P, the normal state can be equivalently defined as ϕVϕχ and the abnormal state is defined as ψ=¬(ϕVϕχ). χ is called a “clock” variable, which denotes how much time has passed since the last motion event. It is assumed that special “pass (Δt)” events are raised periodically so the system can always be aware of the current time.


Given a sequence of the past events esP and the latest event e, the predicates ϕ, ϕ and ψ are characterized by the following properties:


Non-critical: One or more motion events have occurred within last 1 minute (¬P).

ϕχ(esP),χ≤1 min,e=motion⇒ϕ0(esP,e)  a.
ϕχ(esP),χ≤1 min,e≠motion,e≠pass(Δt)⇒ϕχ(esP,e)  b.
ϕχ(esP),χ≤1 min,e=pass(Δt),χ+Δt≤1 min⇒ϕχ+Δt(esP,e)  c.
ϕχ(esP),χ≤1 min,e=pass(Δt),χ+Δt>1 min⇒¬ϕχ+Δt(esP,e)  d.


Critical: No motion event has occurred in the last 1 minute (P), and the latest event≠cas (¬Q).

ϕ(esP),e≠motion ∧e≠cas⇒ϕ(esP,e)  a.
ϕ(esP),e=motion⇒¬ϕ(esP,e)  b.


For the case that the system have been so far staying in the normal state:

ϕ(esP)∨ϕχ(esP)


For the case that the transition is changed from the normal state to the abnormal state:

ϕ(esP)∨ϕχ(esP)⇒ψχ(esP,e)≡ϕ(esP)∧e=cas


In the same way as the first use case, ϕ and ϕ are defined as follows:







ϕ


(


es
P

,
e

)


=

{









ϕ
_

χ



(

es
P

)


,




(

e
=




pass


(

Δ





t

)



χ

+

Δ





t


>

1





min



)







ϕ


(

es
P

)


,




(

e

motion

)












ϕ
_

0



(


es
P

,
e

)



=

{






ϕ


(

es
P

)


,




(

e
=
motion

)









ϕ
_

χ



(

es
P

)


,




(

e
=
motion

)
















ϕ
_


χ
+

Δ





t





(


es
P

,
e

)


=







ϕ
_

χ



(

es
P

)


,




(

e
=




pass


(

Δ





t

)



χ

+

Δ





t




1





min



)













ϕ
_

χ



(


es
P

,
e

)


=







ϕ
_

χ



(

es
P

)


,




(

e



pass


(

Δ





t

)



e


motion

)

















FIG. 10 is a diagram showing a timed automaton in the second use case, in accordance with one embodiment of the present invention. FIG. 10 presents a state-machine form of the rules defined above. The timed automaton carries one or more clock variables. In the figure, “clk” is a clock variable. Each clock variable can be reset to 0, i.e., clk:=0. After resetting to 0, the value of the clock variable increases as the time passes; pass(Δt) in the formulas above enforces this. Each state can accompany an invariant condition that refers to the clock variable, e.g., clk≤1 min. As soon as the invariant condition for a state no longer holds, a state transition is invoked for leaving the state. Each state transition can accompany a clock reset action (clk:=0) and/or a guard condition, e.g., clk>1 min.



FIG. 11 is a diagram showing system 1100 in a third use case, in accordance with one embodiment of the present invention. System 1100 is for enforcing that a suitable number human personnel are always stationed in room 1107 of a building by monitoring entries and exits using IC card readers or computer-based controlled access system (CAS) reader. For example, IC card reader or CAS readers include CAS1 1101 and CAS2 1102. CAS1 1101 functions as an event source (ES1) for entry and an event processor (EP1); CAS1 1102 functions as an event source (ES2) for exit and an event processor (EP2). The objective of system 1100 is to raise alerts when the number of people in the room becomes too crowded or too few.


SIEM (Security Information and Event Management) rules are as follows. When event processor EP1 1104 receives an entry event from event source ES1 1103, if the number of people in room 1107 is greater than 2N/3, EP1 104 raises an alert (alert1: too crowded). When event processor EP2 1106 receives an exit event from event source ES2 105, if the number of people in room 1107 is less than N/3, EP2 106 raises an alert (alert2: too few). N is the maximum number of people that room 1107 can hold. The SIEM rules (semi-formal) are described as:

enter→alert1 when n>2N/3
exit→alert2 when n<N/3

where n=|{enter∈past_events}|−|exit∈past_events|.


Note that the “when . . . ” part of the above rule can be regarded as a critical condition, that is, if this condition holds when an event occurs, the system will no longer stay in a normal state but turn into an abnormal (or error) state. More specifically, the above rules can be rephrased as follows: If n>2N/3 (P1) and the latest event is “enter” (Q1), then the system no longer stays in the normal state (alert1). If n<N/3 (P2) and the latest event is “exit” (Q2), the system no longer stays in the normal state (alert2). If n≥N/3 and n≤2N/3, then the system stays in the normal state. Note that the conditions that involve “n” are post-conditions are supposed to hold after events are raised. Thus, the system is in the normal state if and only both ¬(P1 ∧Q1) and ¬(P2 ∧Q2) hold. Let ϕ1=P1 ∧¬Q1, ϕ1=¬P1, ϕ2=P2 ∧¬Q2, and ϕ2=¬P2.


The predicates ϕ1, ϕ2, ϕ1, ϕ2, ψ1, and ψ2 are characterized by the following properties:


Non-critical 1: n≤2N/3 (¬P1).

ϕ1(esP),e=any⇒ϕ1(esP,e)(n≤2N/3)  a.
ϕ1(esP),e=any⇒¬ϕ1(esP,e)(n≥2N/3)  b.


Critical 1: n>2N/3 (P1) and the latest event is not “enter” (¬P1).

ϕ1(esP),e≠enter⇒ϕ1(esP,e)(n>2N/3)  a.
ϕ1(esP),e≠enter ⇒¬ϕ1(esP,e)(n≤2N/3)  b.


Abnormal 1:

ψ1(esP,e)≡ϕ1(esP)∧e=enter


Non-critical 2: n≥N/3 (¬P2).

ϕ2(esP),e=any⇒ϕ2(esP,e)(n≥N/3)  a.
ϕ2(esP),e=any⇒¬ϕ2(esP,e)(n<N/3)  b.


Critical 2: n<N/3 (P2) and the latest event is not “exit” (¬P2).

ϕ2(esP),e≠exit⇒ϕ2(esP,e)(n<N/3)  a.
ϕ2(esP),e≠exit⇒¬ϕ2(esP,e)(n≥N/3)  b.


Abnormal 2:

ψ2(esP,e)≡ϕ2(esP)∧e=exit


In the same way as the first use case and the second use case, ϕ1, ϕ2, ϕ1, and ϕ2 are defined as follows:









ϕ
_

1



(


es
P

,
e

)


=

{









ϕ
_

1



(

es
P

)


,




(

n



2

N

3


)








ϕ
1



(

es
P

)


,




(


e

enter

,

n



2

N

3



)











ϕ
1



(


es
P

,
e

)



=

{









ϕ
_

1



(

es
P

)


,




(


e
=
enter

,

n
>


2

N

3



)








ϕ
1



(

es
P

)


,




(


e

enter

,

n
>


2

N

3



)












ϕ
_

2



(


es
P

,
e

)



=

{









ϕ
_

2



(

es
P

)


,




(

n


N
3


)








ϕ
2



(

es
P

)


,




(


e

exit

,

n


N
3



)











ϕ
2



(


es
P

,
e

)



=

{







ϕ
_

2



(

es
P

)


,




(


e
=
exit

,

n
<

N
3



)








ϕ
2



(

es
P

)


,




(


e

exit

,

n
<

N
3



)
















FIG. 12 is a diagram showing a finite automaton in the third use case, in accordance with one embodiment of the present invention. FIG. 12 presents a state-machine form of the rules defined above. ϕi and ϕi naturally derives state transition systems Mi (i=1, 2). Let M=M1 ∩M2 represents the entire system. M is in a normal state if and only if both M1 and M2 are in a normal state. M is in an abnormal state if and only if either M1 or M2 are in an abnormal state. Each of event processors carries a copy of M=M1 ∩M2 and keeps tracking of a current state. When the current state is critical, an enter event immediately leads to invoking alert1, or an exit event immediately lead to invoking alert2. Each state transition at an event process is forwarded to the other event processor (EPs) so that the entire EPs always point to a same state. Events that lead to state transitions are forwarded to the entire EPs. n is re-computed at each event processor. Events that do not invoke state transitions are processed locally where they are received.



FIG. 13 is a diagram illustrating components of computer device 1300 for automatic transformation of security event detection rules and deploying the rules in a network of event processors or components of computer device 1300 hosting one or more event processors and/or Security Information and Event Management (SIEM) rules, in accordance with one embodiment of the present invention. It should be appreciated that FIG. 13 provides only an illustration of one implementation and does not imply any limitations with regard to the environment in which different embodiments may be implemented. The computer device may be any electronic device or computing system capable of receiving input from a user, executing computer program instructions, and communicating with another electronic device or computing system via a network.


Referring to FIG. 13, computer device 1300 includes processor(s) 1320, memory 1310, and tangible storage device(s) 1330. In FIG. 13, communications among the above-mentioned components of computer device 1300 are denoted by numeral 1390. Memory 1310 includes ROM(s) (Read Only Memory) 1311, RAM(s) (Random Access Memory) 1313, and cache(s) 1315. One or more operating systems 1331 and one or more computer programs 1333 reside on one or more computer readable tangible storage device(s) 1330. On a computer system or a server for automatic transformation of security event detection rules and deploying the rules in a network of event processors, one or more computer programs 1333 include one or more computer programs for automatic transformation of security event detection rules and deploying the rules in a network of event processors. Computer device 1300 further includes I/O interface(s) 1350. I/O interface(s) 1350 allows for input and output of data with external device(s) 1360 that may be connected to computer device 1300. Computer device 1300 further includes network interface(s) 1340 for communications between computer device 1300 and a computer network.


The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.


The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device, such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.


Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network (LAN), a wide area network (WAN), and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.


Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, and conventional procedural programming languages, such as the C programming language, or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry in order to perform aspects of the present invention.


Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.


These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture, including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.


The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.


The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

Claims
  • 1. A computer-implemented method for transformation of security information and event management (SIEM) rules and deploying the SIEM rules in a network of event processors, the method comprising: converting the SIEM rules to formal representations;generating rule abstraction of the formal representations, by using an abstraction function;constructing a finite automaton based on the rule abstraction;eliminating irrelevant transitions in the finite automaton to generate an optimized finite automaton;generating optimized formal rules, based on the optimized finite automaton;converting the optimized formal rules to optimized SIEM rules; anddeploying the optimized SIEM rules in the network of the event processors;wherein the optimized formal rules are defined for all of the event processors in the network, by assuming a single event processor without considering distribution of the event processors;wherein the event processors share a state of a finite state machine, an event incurs a state transition of the finite state machine;wherein, when the state transition changes the state of the finite state machine, the event is passed to one or more remote event processors in the network;wherein, when the state transition does not change the state of the finite state machine, the event is consumed by a local event processor and is not passed to one or more remote event processors in the network;wherein the state of the finite state machine is one of three categories: a normal and non-critical state, a normal but critical state, and an abnormal state;wherein the state does not change to the abnormal state if the state is the normal and non-critical state;wherein the state changes to the abnormal state if the state is the normal but critical state; andwherein an alert is raised if the state is the abnormal state.
US Referenced Citations (9)
Number Name Date Kind
9306962 Pinto Apr 2016 B1
9516053 Muddu et al. Dec 2016 B1
20140040261 Horne et al. Feb 2014 A1
20140244650 Zhou et al. Aug 2014 A1
20140372105 Manadhata et al. Dec 2014 A1
20150113646 Lee Apr 2015 A1
20150222667 Nayshtut et al. Aug 2015 A1
20150229661 Balabine et al. Aug 2015 A1
20150341379 Lefebvre et al. Nov 2015 A1
Non-Patent Literature Citations (5)
Entry
Aman et al. “Event Driven Adaptive Security in Internet of Things” BICOMM 2014 : The Eighth International Conference on Mobile Ubiquitous Computing, Systems, Services and Technologies. pp. 7-16.
Coppolino et al. (2013) “Enhancing SIEM Technology to Protect Critical Infrastructures.” In: Hammerli B.M., Kalstad Svendsen N., Lopez J. (eds) Critical Information Infrastructures Security. CRITIS 2012. Lecture Notes in Computer Science, vol. 7722. Springer, Berlin Heidelberg.
Kolios et al. “Data-Driven Event Triggering for IoT Applications” IEEE Internet of Things Journal, vol. 3, No. 6, Dec. 2016. pp. 1146-1158.
Appendix P List of IBM Applications or Patents Treated as Related. Dated Dec. 8, 2017. Two pages.
Hatsutori et al. U.S. Appl. No. 15/692,429, filed Aug. 31, 2017.
Continuations (1)
Number Date Country
Parent 15692429 Aug 2017 US
Child 15840587 US