Automatically generating rules for connection security

Information

  • Patent Application
  • 20070016945
  • Publication Number
    20070016945
  • Date Filed
    July 15, 2005
    19 years ago
  • Date Published
    January 18, 2007
    17 years ago
Abstract
A method and system for creating security policies for firewall and connection policies in an integrated manner is provided. The security system provides a user interface through which a user can define a security rule that specifies both a firewall policy and a connection policy. After the security rule is specified, the security system automatically generates a firewall rule and a connection rule to implement the security rule. The security system provides the firewall rule to a firewall engine that is responsible for enforcing the firewall rules and provides the connection rule to an IPsec engine that is responsible for enforcing the connection rules.
Description
BACKGROUND

Computing devices are being used to store and transmit vast amounts of sensitive data. Computing devices that are connected to the Internet or other networks (e.g., cellular phone networks) are under constant attack by hackers seeking to obtain or destroy such sensitive data. To ensure the privacy of the sensitive data during both storage and transmission, many different security tools have been implemented to secure such sensitive data. The security tools include application level firewall tools and Internet Protocol (“IP”) security tools. An application level firewall allows restrictions to be placed on the source and destination of data that is transmitted between applications executing on different computing devices. For example, an application level firewall may prevent a computing device that is not authorized to send data to a protected computing device from doing so. The firewall may intercept all data that is sent to the protected computing device and discard the data when it is not from a computing device with an authorized IP address. An application level firewall may also restrict access based on port number associated with an application. The restricting of the users and the computing devices from which a protected computing device can receive data can help prevent malicious attacks by malware that seeks to exploit a vulnerability of a computing device. Such malware may include rootkits, Trojan horses, keystroke loggers, and so on.


IP security tools seek to ensure the identity of computing devices receiving or transmitting data and the privacy of the data while in transit. Authentication is a process to help ensure the identity of a computing device, and encryption and integrity protection are processes to help ensure the privacy and integrity of data. IP security tools typically implement the IPsec protocols as defined by RFC 1826 of the Internet Engineering Task Force (“IETF”) entitled “IP Authentication Header (AH)” and by RFC 1827 of the IETF entitled “IP Encapsulating Security Payload (ESP).” The AH protocol is used to provide security services such as connectionless integrity and data origin authentication of IP data. The security services can be provided between a pair of communicating hosts, between a pair of communicating security gateways, or between a security gateway and a host. The ESP protocol is designed to provide a mix of security services alone or in combination with the AH protocol. The ESP protocol can be used to provide confidentiality, data origin authentication, and connectionless integrity. The AH and ESP protocols allow data to be transmitted securely between computing devices. The IPsec protocols may use RFC 2409 of the IETF entitled “Internet Key Exchange Protocol” to exchange keys between a pair of communicating devices.


Although tools that implement firewalls and IPsec can help ensure data security of the sensitive data, the configuring of firewalls and IPsec tools can be both difficult and tedious. Typically, such configuration is performed by security personnel of the enterprise who seek to establish a security policy for the enterprise. Security policy may use firewall rules and IPsec or connection rules to define how computing devices of the enterprise communicate with other computing devices both internal and external to the enterprise. Security personnel typically use a firewall tool to define the firewall rules and use an IPsec tool to define the IPsec rules. Security personnel need to coordinate the firewall rules and the IPsec rules to ensure that they are consistent and correctly implement the desired security policy of the enterprise. It can be particularly difficult for security personnel to configure an IPsec tool to implement a security policy because of the complexity of IPsec, because IPsec terminology can be confusing and inconsistent, and because many decisions need to be made by security personnel. Moreover, because firewall and IPsec are overlapping technologies, it is easy for security personnel to be confused over how to implement an enterprise security policy. As a result, the implementations of security policies of many enterprises may not provide the desired level of security, which leaves the computing devices of the enterprise vulnerable to attack.


IPsec security policies are further difficult to implement because they require that the outbound security policy of an outbound device be symmetric with the inbound security policy of an inbound device. In particular, a crypto suite of security algorithms of an outbound security policy needs to match a crypto suite of security algorithms of an inbound security policy. Since selecting of security algorithms for security policies can be both tedious and complex, it can be difficult for administrators to establish matching inbound and outbound security policies.


SUMMARY

A method and system for creating security policies for firewall and connection policies in an integrated manner is provided. The security system provides a user interface through which a user can define a security rule that specifies both a firewall policy and a connection policy. After the security rule is specified, the security system automatically generates a firewall rule and/or a connection rule to implement the security rule. The security system provides the firewall rule to a firewall engine that is responsible for enforcing the firewall rules and provides the connection rule to an IPsec engine that is responsible for enforcing the connection rules. The security system ensures that the firewall rules and the connection rules are consistent. The security system can also generate firewall rules with knowledge of connection rules because the security rule specifies connection security.


A security system that allows an outbound security policy for the connection security to be automatically derived from an inbound security policy for connection security is provided. The security system for an inbound security policy has security suites that each specify one or more security algorithms. Once the inbound security policy is distributed to the computing devices of an enterprise, the security system can use the security suites of the inbound security policy as the basis of the security suites for the outbound security policy of the computing devices. Because each computing device offers an outbound security suite that matches the same inbound security suite that is distributed to the computing devices of an enterprise, those computing devices have matching inbound and outbound security suites.


This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.




BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is an overview display page in one embodiment.



FIG. 2 is a display page that illustrates the establishing of a default policy for a domain in one embodiment.



FIG. 3 is a display page that illustrates the establishing of security suites for key exchange in one embodiment.



FIG. 4 is a display page that illustrates the setting of security suites for key exchange in one embodiment.



FIG. 5 is a display page that illustrates the setting of security suites for data protection in one embodiment.



FIG. 6 is a display page that illustrates the setting of custom security suites for data protection in one embodiment.



FIG. 7 is a display page that illustrates the setting of security suites for authentication in one embodiment.



FIG. 8 is a display page that illustrates inbound exceptions to the default security policy in one embodiment.



FIG. 9 is a display page that illustrates the setting of general properties for inbound exceptions in one embodiment.



FIG. 10 is a display page that illustrates the setting of users and computers properties for inbound exceptions in one embodiment.



FIG. 11 is a display page that illustrates the setting of protocols and ports for inbound exceptions in one embodiment.



FIG. 12 is a display page that illustrates the setting of the address scope to which an inbound exception applies in one embodiment.



FIG. 13 is a display page that illustrates the setting of advanced attributes of an inbound exception in one environment.



FIG. 14 is a display page that illustrates the outbound exceptions to the profiles in one embodiment.



FIG. 15 is a block diagram that illustrates data structures of the security system in one embodiment.



FIG. 16 is a block diagram that illustrates components of the security system in one embodiment.



FIG. 17 is a flow diagram that illustrates the processing of the auto-generate connection security rules component in one embodiment.



FIG. 18 is a flow diagram that illustrates the processing of the set 5-tuple component in one embodiment.



FIG. 19 is a flow diagram that illustrates the processing of the process remote user authorization list component in one embodiment.



FIG. 20 is a flow diagram that illustrates the processing of the set action component in one embodiment.



FIG. 21 is a flow diagram that illustrates the processing of the set matching authentication and crypto suites component in one embodiment.



FIG. 22 is a flow diagram that illustrates the processing of the set non-matching authentication and crypto suites component in one embodiment.



FIG. 23 is a flow diagram that illustrates the processing of a component to establish an outbound security policy for a connection security in one embodiment.



FIG. 24 is a flow diagram that illustrates the processing of the component to establish a connection security policy based on default security suites in one embodiment.



FIG. 25 is a flow diagram that illustrates the processing of a component that automatically generates security suites for main mode of IPsec in one embodiment.




DETAILED DESCRIPTION

A method and system for creating security policies for firewall and connection policies in an integrated manner is provided. In one embodiment, the security system provides a user interface through which a user can define a security rule that specifies a firewall policy and/or a connection policy. For example, the security rule may specify a port through which inbound traffic may be received from a certain computing device and further specifies that traffic received through that port should be encrypted. After the security rule is specified, the security system automatically generates a firewall rule, a connection rule, or a combination of one or more firewall rules and connection rules to implement the security rule. For example, the firewall rule restricts inbound traffic on that port to a computing device with a specified IP address, and the connection rule specifies that inbound traffic to that port and from the specified IP address is to be encrypted. The security system provides the firewall rule to a firewall engine that is responsible for enforcing the firewall rules and provides the connection rule to an IPsec engine that is responsible for enforcing the connection rules. Because the security system automatically generates both the firewall rules and the connection rules that form a higher-level security rule, it can ensure that the firewall rules and the connection rules are consistent. Moreover, since the security system generates firewall rules with knowledge of connection rules, the firewall rules can be based on information that is not normally available to a firewall. In this way, an administrator can rely on the security system to establish consistent firewall rules and connection rules that implement the security policy of an enterprise as expressed by high-level security rules.


In one embodiment, the security system allows a user to establish security rules, also referred to as authenticated firewall rules, that each define a firewall action, conditions under which the action is to be taken, and connection security. The conditions may specify a direction of traffic, the identity of the local application or local service, and a local and a remote address and port, protocol, users and user groups, computers and computer groups, interface types (e.g., wireless LAN), and so on. For example, an authenticated firewall rule may have conditions that specify a local application and remote IP address and port of a computing device. When data directed to that application is received from a computing device with that IP address and port, the conditions of the rule are satisfied and the action of the rule is taken. For example, the action may be to allow the data to be sent to the application or to block the data from being sent to the application. The connection security of the authenticated firewall rule may indicate that the traffic from that remote IP address and port sent to the local application is to be encrypted and have its integrity protected. The security system generates connection security rules to implement the connection security of an authenticated firewall rule. In one embodiment, the security system generates connection security rules from the authenticated firewall rules, but uses the authenticated firewall rules directly as firewall rules. Thus, the term “authenticated” in “authenticated firewall rules” indicates that firewall rules have been augmented with connection security information from which the security system can generate connection security rules (e.g., IPsec rules).


In one embodiment, the security system may provide a default security suites for use in automatically generating connection security rules. The security system may provide default security suites for both the main mode (“phase I”) and the quick mode (“phase II”) of the IPsec protocol, and for key exchange with the IPsec protocol. A security suite specifies a set of security algorithms to be used by the IPsec protocol. As used herein, a data protection crypto suite may indicate that the ESP protocol is to use SHA-256 for integrity protection and 3DES for encryption. A data protection crypto set may include multiple crypto suites of integrity algorithms and encryption algorithms along with a priority so that an IPsec engine can negotiate which crypto suite to use when communicating with another computing device. Because the security system provides these default security suites, an administrator can specify a security policy that includes connection security rules without having to specify integrity protection algorithms and encryption algorithms. An authentication set of the main mode may specify an authentication methods (e.g., Kerberos). A key exchange crypto suite of the main mode may specify a key exchange algorithm (e.g., DH1), an encryption algorithm (e.g., 3DES), and an integrity protection algorithm (e.g., SHA1). An authentication set of the quick mode may specify an authentication method and authentication data. A data protection crypto suite of the quick mode may specify a protocol (e.g., ESP), an encryption algorithm (e.g., 3DES), and an integrity protection algorithm (e.g., SHA1). The security system may allow a user to define additional security suites.


In one embodiment, the security system allows an outbound security policy for connection security to be automatically derived from an inbound security policy for the connection security. The security system for an inbound security policy has security suites that each specifies one or more security algorithms. Once the inbound security policy is distributed to the computing devices of an enterprise, the security system can use the security suites of the inbound security policy as the basis of the security suites for the outbound security policy of the computing devices. For example, the inbound security policy may specify a main mode key exchange crypto suite for IPsec with an integrity algorithm of SHA1, an encryption algorithm of 3DES, and a key exchange algorithm of Diffie-Hellman Group 2. If so, then the security system may offer the same security suite when negotiating an outbound connection. Because each computing device offers an outbound security suite that matches an inbound security suite, the computing devices by definition have matching inbound and outbound security suites. In this way, the computing devices of an enterprise can establish secure connections based on automatically generated outbound security policies. In an alternate embodiment, the security system may automatically generate inbound security policies based on security suites of an outbound security policy. In addition, the security system may automatically augment inbound security policies based on security suites defined for an outbound security policy and augment inbound security policies based on security suites defined for an inbound security policy.


In one embodiment, the security system may provide a security policy for a connection security that is based on default security suites. The security system may define a default security suite for a connection security. For example, a default data protection crypto suite may specify the ESP protocol and include an integrity algorithm of SHA1, and another default data protection crypto suite may specify the ESP protocol and include an integrity algorithm of SHA1 and an encryption algorithm of 3DES. The security system may provide a user interface through which an administrator can select whether the ESP protocol should be based solely on integrity checking or based both on integrity checking and encryption. Based on the selection by an administrator, the security system will automatically use the associated default data protection crypto suite.



FIGS. 1-14 are display pages that illustrate the user interface of the security system in one embodiment. FIG. 1 is an overview display page in one embodiment. Display page 100 includes an overview area 110 provides an overview of current policy defaults and a security policy area 120 provides an introduction to concepts used in the user interface. The overview area includes a domain profile area 111 and a standard profile area 113. The profile areas indicate default policies that that security system implements when generating authenticated firewall rules. The domain profile area specifies a default policy that applies when the computing device is connected to a domain of which it is a member (e.g., LAN of an enterprise), and the standard profile area specifies a default policy that applies when the computing device is not connected to a domain of which it is a member (e.g., via a publicly accessible Internet access point). In this example, the domain profile area indicates that the firewall is enabled, inbound connections are denied or blocked by default, and outbound connections are allowed by default. The domain profile properties button 112 and the standard profile properties button 114 provide access to display pages for modifying the default profile behavior. The security policy area includes a connection security area 121 and a firewall security area 122. The connection security area allows a user to define security suites for use in generating the connection security rules and to create custom connection security rules. The firewall security area allows the user to define authenticated firewall rules, which specify exceptions to the default policies as specified in the domain profile area or standard profile area.



FIG. 2 is a display page that illustrates the establishing of a default policy for the domain profile in one embodiment. Display page 200 includes an inbound connections box 201, an outbound connections box 202, and a settings button 203. The inbound connections box allows the user to establish a default policy of allowing or denying inbound connections. The outbound connections box allows the user to establish a default policy of allowing or denying outbound connections. The settings button allows the user to specify general behavior of the firewall tool such as notifying a user when a program is blocked from accepting inbound connections, allowing a local administrator to create exceptions, and so on.



FIG. 3 is a display page that illustrates the establishing of crypto suites for key exchange in one embodiment. Display page 300 includes radio buttons 301 and 302 and settings button 303 for controlling the exchange of keys during the main mode of IPsec. The radio buttons allow the user to select a standard set of crypto suites that may be defined hierarchically by groups within an enterprise or to specify custom security suites for key exchange. In general, the security policy, such as authenticated firewall rules and security suites, may be defined at various group levels within an enterprise. For example, the entire enterprise may be the highest-level group and various divisions may be lower-level groups. The enterprise security policies may specify the minimum security policy for all computing devices of the enterprise. A division security policy may be a more restrictive policy, for example, because of the highly sensitive nature of the data handled by the computing devices of that division. The security system may establish the default security policy for a computing device is a combination of the security policies of all the groups to which it hierarchically belongs. The settings button allows a user to customize the default security policy.



FIG. 4 is a display page that illustrates the setting of security algorithms for key exchange crypto suites in one embodiment. Display page 400 includes crypto suite definition area 410 that defines three crypto suites 411-413. Each crypto suite specifies an integrity algorithm, encryption algorithm, and key exchange algorithm. The ordering of the key exchange crypto suites indicates the preference used by the security system in negotiating which key exchange suite to use.



FIG. 5 is a display page that illustrates the setting of crypto suites for data protection in one embodiment. Data protection security includes both integrity protection and encryption. Display page 500 includes radio buttons 501 and 502 and settings button 503 for managing data protection security. The radio buttons allow the user to select and use standard crypto suites or to specify custom crypto suites for data protection. The settings button allows a user to specify a custom crypto suite for data protection.



FIG. 6 is a display page that illustrates the setting of security algorithms for crypto suites for data protection in one embodiment. Display page 600 includes a data integrity area 601 and a data integrity and encryption area 602. The data integrity area specifies crypto suites for data integrity only. Each crypto suite specifies the protocol and the integrity algorithm. The data integrity and encryption area specifies crypto suites for data integrity and encryption. Each crypto suite specifies a protocol, integrity algorithm, and encryption algorithm.



FIG. 7 is a display page that illustrates the setting of authentication methods in one embodiment. Display page 700 includes radio buttons 701-704 and settings button 705. The radio button 701 allows a user to select the default authentication method, which may be based on a hierarchy of authentication methods. Radio buttons 702-704 allow a user to select alternate default authentication methods. The settings button allows a user to specify custom authentication methods.



FIG. 8 is a display page that illustrates inbound exceptions to the default security policy in one embodiment. Display page 800 includes inbound exception area 810 and new inbound exception button 820. The inbound exception area lists inbound exceptions 811-816 to the default security policy. Each inbound exception includes a name, an action, a users, a required encryption, a profile, an additional conditions, and an enable field that describe the inbound exception, and others that are not shown in this example. A user uses the new inbound exception button to define or modify an inbound exception. A user modifies an inbound exception by selecting the inbound and then a properties option.



FIGS. 9-13 are display pages that illustrate the defining of inbound exceptions in one embodiment. FIG. 9 is a display page that illustrates the setting of general properties for inbound exceptions in one embodiment. Display page 900 includes a name area 901, a programs area 902, and an action area 903. A user enters the name of the inbound exception in the name area and indicates whether the inbound exception is enabled. A user uses the programs area to specify whether the inbound exception applies to all programs or to a subset of programs as a condition of the authenticated firewall rule. A user uses the action area to specify the action to take when the conditions of the inbound exception are satisfied. The actions include to allow all connections, to allow only secured connections, and to deny connections. When the user indicates to allow only secure connections, then the security system sets an auto-generation flag of the authenticated firewall rule so that the corresponding connection security rule can be automatically generated.



FIG. 10 is a display page that illustrates the setting of users and computers properties for inbound exceptions in one embodiment. Display page 1000 includes a users area 1001 and a computers area 1002. A user enters the names of users or computers, individually or as a group, as a condition of the authenticated firewall rule to restrict the users or computers to which the inbound exception applies.



FIG. 11 is a display page that illustrates the setting of protocols and ports for inbound exceptions in one embodiment. Display page 1100 includes a protocol area 1101, a ports area 1102, and an ICMP area 1103. The protocol area allows a user to specify the protocol as a condition of the authenticated firewall rule to which the inbound exception applies. The port area indicates the local and remote ports as a condition of the authenticated firewall rule to which the inbound exception applies if the protocol is TCP or UDP. The ICMP area allows the user to specify Internet Control Management Protocol parameters as a condition of the authenticated firewall rule when the ICMP protocol is specified.



FIG. 12 is a display page that illustrates the setting of the address scope to which an inbound exception applies in one embodiment. Display page 1200 includes a local address area 1201 and a remote address area. 1202. The local address area and remote address area allow the user to specify the local and remote addresses as conditions of the authenticated firewall rule to which the inbound exception applies.



FIG. 13 is a display page that illustrates the setting of advanced attributes of an inbound exception in one environment. Display page 1300 includes a profile area 1301, an interface types button 1302, and a services button 1303. The profile area allows a user to specify to which profiles (i.e., domain and/or standard) as a condition of the authenticated firewall rule the inbound exception applies. The interface types button allows a user to specify the types of interfaces as a condition of the authenticated firewall rule to which the inbound exception applies. The services button allows the user to specify the services as a condition of the authenticated firewall rule to which the inbound exception applies.



FIG. 14 is a display page that illustrates the outbound exceptions to the profiles in one embodiment. Display page 1400 includes an outbound exception list area 1401 that lists the outbound exceptions. The security system provides a user interface that allows a user to create and modify outbound exceptions in much the same way as inbound exceptions are modified.



FIG. 15 is a block diagram that illustrates data structures of the security system in one embodiment. The data structures include security suites 1501-1504 and rules 1506-1507. The data structures may be stored as part of the registry of a host computing device in one embodiment. The security suites 1501 define authentication sets for the main mode of IPsec. Each authentication set identifies an authentication method and authentication data. The security suites 1502 define key exchange crypto suites for the main mode of IPsec. A key exchange crypto suite includes a key exchange algorithm, an encryption algorithm, and an integrity algorithm. The security suites 1503 define the authentication sets for quick mode of IPsec. A authentication set identifies an authentication method and authentication data. The security suites 1504 define the data protection crypto suites for the quick mode of IPsec. The crypto suites include the protocol, encryption algorithm, and integrity algorithm. The connection security rules and the authenticated firewall rules define rules for IPsec and a firewall, respectively. Table 1 defines the fields of the authenticated firewall rules, and table 2 defines the fields of the connection security rules.

TABLE 1If not#FieldNameField SyntaxpresentComments1VersionThe version format is v<Major>.<minor>RuleThe version is mandatoryrejected.and is the first field in therule string. It is not a namevalue pair, just the fieldsyntax.2ActionActionBlock | Allow | AllowBypassRuleThe action field isrejected.mandatory.3NameNameThe name can be either a text name or aThis is for displayreference into a dll's resource string. The dllpurposes. It is differentresource format is: @<dll filename>,index. The dllthan the registry valuefilename can be a full path including environmentname.variables (%x%).4DirectionDirIn | OutRulerejected.5LocalAppFull path to executableIf neitherPath canIf both aApplicationapplicationincludeservice andorenvironmentapplicationservicevariablesare specifiedis(%x%).then the rule6LocalSvcService Name Short Name or *present,Theapplies only toServicethen theServicethe serviceruleSID canthat isappliesberunning insideto allgeneratedthe specifiedapplicationsfromapplication.andserviceThis qualifiesservices.name. *the rule toindicatesapply to trafficalloriginatingservices.from orreceived bythe specifiedapplication orservice. It isevaluatedonly on themachinedescribed inthis rule bythe localaddress.7LocalIFGUIDIf thereThe interfaces' guides areNetworkare nodefined in string values thatInterfaceIF,are found in this pattern:IFType,HKEY_LOCAL_MACHINE\LA4, orSOFTWARE\Microsoft\WindowsNT\LA6CurrentVersion\NetworkCards\<n>\fields,Service Namethen the<n> is an arbitraryruleintegerapplieskey.8LocalIFTypeTraversal | Wireless | LAN | RASto allNetworklocalInterfaceaddressesTypeand9LocalLA4Single address, subnet or range expressionNetworkThe n in the ip subnetIPv4ipxx.xx.xx.xxInterfaces.syntax is an integer in theAddressaddressrange 1-32.ip subnetxx.xx.xx.xx/nipxx.xx.xx.xx-xx.xx.xx.xxaddressrangeBroadcastKeyword: BcastMulticastKeyword: MCast10LocalLA6Single address, subnet or range expressionAn IPv6 address can beIPv6ipxxxx:xxxx:xxxx:xxxx:fully represented, orAddressaddressxxxx:xxxx:xxxx:xxxxshortened by eitherip subnetxxxx:xxxx:xxxx:xxxx:removing leading zeros orxxxx:xxxx:xxxx:xxxx/nzero compression.ipxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx-The n in the ip subnetaddressxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxxsyntax is an integer in therangerange 1-128.BroadcastKeyword: BcastMulticastKeyword: MCast11RemoteRA4Single address, subnet or range expressionIf thereThe n in the ip subnetIPv4ip addressxx.xx.xx.xxare nosyntax must be an integerAddressip subnetxx.xx.xx.xx/nRemotein the range 1-32.ip addressxx.xx.xx.xx-xx.xx.xx.xxIPv4 orrangeIPv6local subnetKeyword: LocalSubnetAddressDNS ServersKeyword: DNSfields,WINSKeyword: WINSthen theServersruleDHCPKeyword: DHCPappliesServersto allDefaultKeyword: DefaultGWRemoteGatewayaddresses.BroadcastKeyword: BcastMulticastKeyword: MCast12RemoteRA6Single address, subnet or range exprssionAn IPv6 adress can beIPv6ipxxxx:xxxx:xxxx:xxxxfully represented, orAddressaddress:xxxx:xxxx:xxxx:xxxxshortened by eitherip subnetxxxx:xxxx:xxxx:xxxx:removing leading zeros orxxxx:xxxx:xxxx:xxxx/nzero compression. The nipxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx-in the ip subnet syntax isaddressxxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxxan integer in the range 1-128.rangelocalKeyword: LocalSubnetsubnetDNS ServersKeyword: DNSWINSKeyword: WINSServersDHCPKeyword: DHCPServersDefaultKeyword: DefaultGWGatewayBroadcastKeyword: BcastMulticastKeyword: MCast13LocalLPortSingle port, Range or dynamic RPC port setRuleProtocol=6 (TCP) orPortSingle portInteger: Min = 0, Max = 65535appliesProtocol=17 (UDP) isPort<low bound Integer>-<upperto allspecified else the rule isRangebound Integer>local/invalid.DynamicKeyword: RPCremoteThe RPC keyword indicatesRPC portports.that the local host's set ofsetopen, listening RPC ports14RemoteRPortSingle port, range or dynamic RPC port setis dynamically resolved toPortSingle portInteger: Min = 0, Max = 65535define the rule's local portPort<low bound Integer>-<uppersetting when the policy isRangebound Integer>evaluated.15IPProtocolip protocol number 0-255RuleProtocolappliesto all iptraffic.16ICMPICMP<type 0-255>:<code 0-255|* >RuleIf Protocol=1 (ICMPv4) orapplies58 (IPv6-ICMP) is notto allpresent, then the presenceICMPof this field will result in antrafficinvalid rule. Both ICMPv4only ifand ICMPv6 share the typeProtocol = 1and code parameters but(ICMPv4)have different values foror 58equivalent type and code(IPv6-pairs.ICMP).17DescriptionDesc1024 character Unicode stringThis is for displaypurposes.18ActiveActiveFALSE|TRUEThe ruleIf False then rule is notisenforced.enforced.19RemoteRMAuthSDDL StringNoThis authorization check isMachineauthorizationevaluated by the machineAuthorizationisdescribed in this rule by theListappliedlocal address, restrictingto thethe remotely authenticatedremotemachine to those describedmachine.in the list. If the remotemachine is not present inthis list, then this rule doesnot allow or block access.20RemoteRUAuthSDDL StringNoThis authorization check isUserauthorizationevaluated by the machineAuthorizationisdescribed in this rule by theListappliedlocal address, restrictingto thethe remotely authenticatedremoteuser to those described inuser.the list.If the remote user is notpresent in this list, then thisrule does not allow or blockaccess.21SecuritySecurityAuthenticate|AuthenticateEncryptTrafficAuthenticate adds theallowedcondition that the specifiedunencryptedtraffic is IPsec protected.AuthenticateEncrypt addsthe condition that thespecified traffic is IPsecprotected and encrypted.NotRequired specifies thatthere is no restriction basedon IPsec protection. Trafficprotected and clear isequally allowed.22EmbeddedEmbed1024 character Unicode stringNo effectThis is ignored by theContextCtxon rule.service. It is used to grouprules, such as these firewallservices: RemoteAdministration or File andPrinter Sharing, into singleconcepts presented in theUI, Netsh and COM APIs,and to persist address dataexactly as the authorinputted it.23PlatformPlatform<PlatformID>:<Major Version>:<Minor Version>RuleWindows 2000 = 2.5.0ValidityappliesXP = 2.5.1to allversions.24AutoAutoGenTRUE | FALSEAutoGenIf True the engine willGenerateIPsecis off.attempt to generate IPsecRules to cause the IPsecprotection this rulerequires.














TABLE 2












If not



#
Field
Name
Field Syntax
present
Comments




















1
Version

The version format is v<Major>.<minor>
Rule
The version is mandatory






rejected.
and is the first field in the







rule string. It is not a







name value pair, just the







field syntax.


2
Name
Name
It can be either a text name or a reference into a

This is for display





dll's resource string. The dll resource format is:

purposes. It is different





@<dll filename>,index. The dll filename can be a

than the registry value





full path including environment variables (%x%).

name.


3
Local
IF
GUID
The rule
The interfaces' guides are



Network


applies
defined in string values



Interface


to all
that are found in this






Network
pattern:






Interfaces.
HKEY_LOCAL_MACHINE\







SOFTWARE\Microsoft\







WindowsNT\CurrentVersion\







NetworkCards\<n>\ServiceName







<n> is an arbitrary integer







key.


4
Local
IFType
Traversal | Wireless | LAN | RAS
The rule



Network


applies



Interface


to all



Type


Network






Interfaces.


5
Endpoint
EP1_4
Single address, subnet or range expression
If neither
The n in the ip subnet














1 IPv4

ip address
xx.xx.xx.xx
EP1_4 or
syntax is an integer in the



Address

ip subnet
xx.xx.xx.xx/n
EP1_6 is
range 1-32.





ip address
xx.xx.xx.xx-xx.xx.xx.xx
specified,
Keywords can only be





range

then
specified in either the





local
Keyword: LocalSubnet
the rule
source or destination





subnet

applies
address with the exception





DNS
Keyword: DNS
to any
of Me which can be





Servers

address.
specified in source or





WINS
Keyword: WINS

destination when the





Servers


opposite is any other





DHCP
Keyword: DHCP

value.





Servers





Default
Keyword: DefaultGW





Gateway





Broadcast
Keyword: Bcast





Multicast
Keyword: MCast





Current
Keyword: Me





Host












6
Endpoint
EP1_6
Single address, subnet or range expression

An IPv6 address can be














1 IPv6

ip
xxxx:xxxx:xxxx:xxxx:

fully represented, or



Address

address
xxxx:xxxx:xxxx:xxxx

shortened by either





ip subnet
xxxx:xxxx:xxxx:xxxx:

removing leading zeros or






xxxx:xxxx:xxxx:xxxx/n

zero compression.





ip
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx-

The n in the ip subnet





address
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

syntax is an integer in the





range


range 1-128.








Keywords can be specified





DNS
Keyword: DNS

in either the source or





Servers


destination address with





WINS
Keyword: WINS

the exception of Me which





Servers


can be specified in source





DHCP
Keyword: DHCP

or destination when the





Servers


opposite is any other





Default
Keyword: DefaultGW

value.





Gateway





Broadcast
Keyword: Bcast





Multicast
Keyword: MCast





Current
Keyword: Me





Host












7
Endpoint
EP2_4
Single address, subnet or range expression
If neither
The n in the ip subnet














2 IPv4

ip address
xx.xx.xx.xx
EP2_4 or
syntax is an integer in the



Address

ip subnet
xx.xx.xx.xx/n
EP2_6 is
range 1-32.





ip address
xx.xx.xx.xx-xx.xx.xx.xx
specified,
Keywords can only be





range

then
specified in either the





local subnet
LocalSubnet
the rule
source or destination





DNS Servers
Keyword: DNS
applies
address with the exception





WINS
Keyword: WINS
to any
of Me which can be





Servers

address.
specified in source or





DHCP
Keyword: DHCP

destination when the





Servers


opposite is any other





Default
Keyword: DefaultGW

value.





Gateway





Broadcast
Keyword: Bcast





Multicast
Keyword: MCast





Current Host
Keyword: Me












8
Endpoint
EP2_6
Single address, subnet or range

An IPv6 address can be














2 IPv6

ip
xxxx:xxxx:xxxx:xxxx:

fully represented, or



Address

address
xxxx:xxxx:xxxx:xxxx

shortened by either





ip subnet
xxxx:xxxx:xxxx:xxxx:

removing leading zeros or






xxxx:xxxx:xxxx:xxxx/n

zero compression.





ip
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx-

The n in the ip subnet





address
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx

syntax must be an integer





range


in the range 1-128.








Keywords can be specified





local
LocalSubnet

in either the source or





subnet


destination address with





DNS Servers
Keyword: DNS

the exception of Me which





WINS
Keyword: WINS

can be specified in source





Servers


or destination when the





DHCP
Keyword: DHCP

opposite is any other





Servers


value.





Default
Keyword: DefaultGW





Gateway





Broadcast
Keyword: Bcast





Multicast
Keyword: MCast





Current Host
Keyword: Me












9
Endpoint
EP1Port
Single port or dynamic RPC port set
Rule
Protocol=6 (TCP) or














1 Port

Single port
Integer: Min = 0, Max = 65535
applies
Protocol=17 (UDP) is





Dynamic
Keyword: RPC
to all
specified else the rule is





RPC port

ports.
invalid.





set


The RPC keyword can












10
Endpoint
EP2Port
Single port or dynamic RPC port set

only be specified if the














2 Port

Single port
Integer: Min = 0, Max = 65535

corresponding source or





Dynamic
Keyword: RPC

destination address is set








to Keyword: Me.





RPC port


The RPC keyword





set


indicates that the local








host's set of open,








listening RPC ports is








dynamically resolved to








define the rule's local port








setting.












11
IP
Protocol
ip protocol number 0-255
Rule




Protocol


applies






to all ip






traffic.


12
Phase I
Auth1Set
GUID
Default



Authentication


Phase I



Set


Authentication






Set is






used.


13
Phase II
Auth2Set
GUID
No



Authentication


secondary



Set


AuthIp






authentication






is






performed.


14
Phase II
Crypto2Set
GUID
Default



Crypto


Crypto



Set


Set is






used.


15
Embedded
EmbedCtx
1024 character Unicode string
No effect
This is ignored by the



Context


on rule.
service. It is used to







group rules, such as these







firewall services: Remote







Administration or File and







Printer Sharing, into single







concepts presented in the







UI, Netsh, and COM APIs,







and to persist address







data as input.


16
Platform
Platform
<PlatformID>:<Major Version>:<Minor Version>
Rule
Windows 2000 = 2.5.0



Validity


applies
XP = 2.5.1






to all






versions.


17
Description
Desc
1024 character Unicode string

This is for display







purposes.


18
Active
Active
FALSE | TRUE
The rule
If False then rule is not






is
enforced.






enforced.


19
Remote
RTunnel 4
Single address
Rule
There can be no more














Tunnel

ip address
xx.xx.xx.xx
does not
than one Remote Tunnel



Endpoint



describe
Endpoint IPv4 or IPv6



IPv4



a tunnel.
Address specified per rule.



Address




If a rule describes a












20
Remote
RTunnel 6
Single address

tunnel, then the Remote














Tunnel

ip address
xxxx:xxxx:xxxx:xxxx:

Tunnel Endpoint is



Endpoint


xxxx:xxxx:xxxx:xxxx

specified.



IPv6



Address











21
Action
Action
SecureServer | DMZ | Secure | DoNotSecure
Rule






rejected.










FIG. 16 is a block diagram that illustrates components of the security system in one embodiment. The security system 1600 includes a user interface component 1601, an authenticated firewall rules store 1602, a connection security rules store 1603, an auto-generate connection security rules component 1604, an ALE component 1605, a transport layer engine 1606, a phase II of IPsec component 1607, and a phase I of IPsec component 1608. The user interface component provides the user interface of FIGS. 1-14 and generates and stores the authenticated firewall rules in the authenticated firewall rules store. The user interface component may also store user-defined custom connection security rules in the connection security rules store. The auto-generate connection security rules component executes on a host computer to generate connection security rules from the authenticated firewall rules. The auto-generate connection security rules component is described in detail below. The ALE component performs application layer filtering and enforces the firewall rules of the authenticated firewall rules store and may take into consideration connection security information that may be passed from the transport layer engine. The transport layer engine enforces the connection security rules by invoking the IPsec components.


The computing devices on which the security system may be implemented may include a central processing unit, memory, input devices (e.g., keyboard and pointing devices), output devices (e.g., display devices), and storage devices (e.g., disk drives). The memory and storage devices are computer-readable media that may contain instructions that implement the security system. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, such as a signal on a communications link. Various communications links may be used, such as the Internet, a local area network, a wide area network, or a point-to-point dial-up connection.


The security system may be implemented in various operating environments that include personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The security system may also be implemented on computing devices such as cell phones, personal digital assistants, consumer electronics, home automation devices, and so on.


The security system may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, and so on that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.



FIG. 17 is a flow diagram that illustrates the processing of the auto-generate connection security rules component in one embodiment. The component is invoked to generate the connection security rules from the authenticated firewall rules. Each authenticated firewall rule has a flag that indicates whether a corresponding connection security rule should be automatically generated. The user interface component sets the flag for each authenticated firewall rule that it creates. In block 1701, the component selects the next authenticated firewall rule. In decision block 1702, if all the authenticated firewall rules have already been selected, then the component completes, else the component continues at block 1703. In decision block 1703, if the rule indicates to automatically generate a connection security rule, then the component continues at block 1704, else the component loops to block 1701 to select the next authenticated firewall rule. In block 1704, the component creates a connection security rule data structure. In block 1705, the component invokes the set 5-tuple component to establish the local and remote addresses and ports and protocol for the connection security rule. In decision block 1706, if the selected authenticated firewall rule includes a remote user authorization list, then the component continues at block 1707, else the component continues at block 1708. In block 1707, the component invokes the process remote user authorization component which determines whether an authentication suite for users has been defined for phase II of IPsec. In block 1708, the component invokes the set action component to set the action for the connection security rule. In block 1709, the component determines whether there is a matching connection security rule that matches either the 5-tuple or the 2-tuple (i.e., source and destination address). In decision block 1710, if a match is found, then the component continues at block 1712, else the component continues at block 1711. In block 1711, the component invokes the set non-matching security suite component to set the authentication method and crypto suites for the connection security rule based on the defaults. In block 1712, the component invokes the set matching security component to set the authentication and crypto suites based on the matching connection security rule. The component then loops block 1701 to select the next authenticated firewall rule.



FIG. 18 is a flow diagram that illustrates the processing of the set 5-tuple component in one embodiment. The component sets the 5-tuple (i.e., local address, local port, remote address, remote port, and protocol) of the connection security rule based on the 5-tuple of the selected authenticated firewall rule. In block 1801, the component retrieves the 5-tuple of the authenticated firewall rule. In decision block 1803, if the local address is unspecified or is a wildcard, then the component sets the local address to point to the host computer in block 1803, else the component continues at block 1804. In decision block 1804, if the remote address is unspecified or a wildcard, then the component sets the remote address to point to any computer in block 1805, else the component continues at block 1806. In block 1806, the component stores the 5-tuple as modified in the connection security rule and then returns.



FIG. 19 is a flow diagram that illustrates the processing of the process remote user authorization list component in one embodiment. The component is invoked to ensure that a phase II authentication suite has been defined. In block 1901, the component retrieves the default phase II authentication suite. In decision block 1902, if user authentication is specified, then the component returns, else the component fails the generation of the connection security rule.



FIG. 20 is a flow diagram that illustrates the processing of the set action component in one embodiment. The component sets the action to secure when all the conditions can be copied and the authenticated firewall rule applies to both inbound and outbound traffic. Otherwise, the component sets the action to DMZ. A condition such as application name cannot be copied to a connection security rule because the transport layer does not have knowledge of the application to which data is directed. The action of secure indicates that data will be allowed only if it can be sent securely. The action of DMZ indicates that if the data that matches the 5-tuple cannot be sent securely, it will be sent in the clear. However, it may be denied by the ALE layer. In block 2001, the component determines whether all the conditions have been copied. In decision block 2002, if all the conditions have been copied, then the component continues at block 2003, else the component continues at block 2004. In decision block 2003, if the authenticated firewall rule applies to both inbound and outbound traffic (e.g., one rule may apply to inbound traffic and another rule may apply to outbound traffic or a single rule may apply to both inbound and outbound traffic), then the component continues at block 2005, else the component continues at block 2004. In block 2004, the component sets the action to DMZ and returns. In block 2005, the component sets the action to secure and then returns.



FIG. 21 is a flow diagram that illustrates the processing of the set matching security suites component in one embodiment. The component sets the security suites for the connection security rule based on a matching connection security rule. In blocks 2101-2102, the component sets the phase II authentication and crypto suites based on the matching connection security rule. In block 2103, the component gives higher priority to encryption when the rule being created is an inbound rule and returns.



FIG. 22 is a flow diagram that illustrates the processing of the set non-matching security suites component in one embodiment. The component sets in the phase I and phase II authentication methods and crypto suites based on the default security suites. In block 2201, the component identifies the default phase I crypto suites. In block 2202, the component identifies the default phase I authentication method. In block 2203, the component identifies the default phase I crypto suites. In decision block 2204, if the authenticated firewall rule indicates authentication only, then in block 2205 the component gives higher priority to the integrity protection. In decision block 2206, if the authenticated firewall rule indicates both authentication and encryption, then the component continues at block 2207, else the component continues at block 2210. In decision block 2207, if the authenticated firewall rule is for inbound only, then the component continues at block 2209, else the component continues at block 2208. In block 2208, the component gives higher priority to integrity protection. In block 2209, the component gives lower priority to integrity protection. In block 2210, the component identifies the default phase II authentication method. The component then sets the security suites of the connection security rule based on the identified authentication methods and crypto suites and then returns.



FIG. 23 is a flow diagram that illustrates the processing of a component to establish an outbound security policy for a connection security in one embodiment. The component establishes the outbound security policy based on the security suites of the inbound security policy. In block 2301, the component retrieves an inbound security policy for IPsec that includes security suites. In block 2302, the component identifies the security suites from the inbound security policy. In block 2303, the component negotiates outbound connections based on the identified security suites. In one embodiment, the component may offer multiple security suites when negotiating an outbound connection. The security suites may be ordered based on the complexity of their security algorithms so that preference is given to the least complex security algorithms. The component may also automatically generate security suites based on various combinations of the security algorithms defined in the security suites of the inbound security policy. For example, one security suite may specify an integrity algorithm of SHA1 and an encryption algorithm of 3DES and another security suite may specify an integrity algorithm of SHA-256 and an encryption algorithm of AES-128. In such a case, the component may generate an outbound security suite that specifies an integrity algorithm of SHA1 and an encryption algorithm of AES-128 and an outbound security suite that specifies an integrity algorithm of SHA-256 and an encryption algorithm of 3DES.



FIG. 24 is a flow diagram that illustrates the processing of the component to establish a connection security policy based on default security suites in one embodiment. In block 2401, the component provides default security suites for connection security. The default security suites may implement a data protection mode based on integrity checking only or based on integrity checking and encryption. In block 2402, the component receives a selection of a data protection mode from an administrator. In block 2403, the component negotiates a connection security using the default security suite associated with the selected data protection mode.



FIG. 25 is a flow diagram that illustrates the processing of a component that automatically generates security suites for a main mode of IPsec in one embodiment. The component generates the security suites based on various combinations of the security algorithms defined by either inbound or outbound security suites of a security policy. In block 2501, the component selects the next key exchange algorithm of a security suite. In decision block 2502, if all the key exchange algorithms have already been selected, then the component completes, else the component continues at block 2503. In block 2503, the component selects the next integrity algorithm of a security suite. In decision block 2504, if all the integrity algorithms have already been selected, then the component loops to block 2501 to select the next key exchange algorithm, else the component continues at block 2505. In block 2505, the component selects the next encryption algorithm of a security suite. In decision block 2506, if all the encryption algorithms have already been selected, the component loops to block 2503 to select the next integrity algorithm, else the component continues at block 2507. In block 2507, the component forms a new security suite based on the selected key exchange algorithm, integrity algorithm, and encryption algorithm. The security system can use the newly formed security suite when negotiating an inbound or outbound connection. The component then loops to block 2505 to select the next encryption algorithm.


Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. Accordingly, the invention is not limited except as by the appended claims.

Claims
  • 1. A method in a computer system for creating security policies for firewall policies and connection policies, the method comprising: providing a user interface through which a user can specify security rules relating to firewall policy and connection policy; and automatically generating firewall rules and connection rules from the specified security rules.
  • 2. The method of claim 1 wherein a connection rule specifies behavior of the IP security protocol.
  • 3. The method of claim 1 wherein a connection rule specifies key exchange, data protection, and authentication associated with a connection.
  • 4. The method of claim 3 wherein data protection specifies encryption and integrity techniques.
  • 5. The method of claim 1 wherein a security rule specifies a condition and an action to take when the condition is satisfied and authentication and encryption behavior for data that satisfies the condition.
  • 6. The method of claim 1 wherein a firewall rule includes a condition and action to take when the condition is satisfied and the condition may be based on connection security information.
  • 7. The method of claim 1 wherein a user through the user interface can specify security suites for main mode and quick mode of an IP security protocol.
  • 8. The method of claim 7 wherein the security suites for main mode include an authentication method and a crypto suite.
  • 9. The method of claim 7 wherein the security suites for quick mode include a crypto suite.
  • 10. The method of claim 7 wherein a connection rule is automatically generated based on default security suites.
  • 11. A computer-readable medium containing instructions for controlling a computer system to generate a connection rule, by a method comprising: establishing endpoint information for the connection rule based on local and remote address information of the security rule; establishing an action for the connection rule based on whether conditions of the security rule can be copied to the connection rule; and establishing connection security suites for the connection rule based on default security suites.
  • 12. The computer-readable medium of claim 11 wherein the default security suites include main mode and quick mode an authentication method and a crypto suite.
  • 13. The computer-readable medium of claim 11 wherein the establishing of security suites is based on security suites already established for a connection rule with matching endpoint information.
  • 14. The computer-readable medium of claim 11 wherein when all conditions of the security rule can be copied, an action indicates to fail when a secure connection cannot be established.
  • 15. The computer-readable medium of claim 11 wherein when not all the conditions of the security rule can be copied, establishing an action that indicates to establish a non-secure connection when a secure connection cannot be established.
  • 16. The computer-readable medium of claim 11 wherein the establishing of endpoint information includes when a local address of the security rule is unspecified, setting the local endpoint information to indicate a local computing device.
  • 17. The computer-readable medium of claim 11 wherein the establishing of endpoint information includes when a remote address of the security rule is unspecified, setting the remote endpoint information to indicate any remote computing device.
  • 18. A computer-readable medium containing a data structure that includes: a firewall action; conditions that include direction, local application, local service, local address, remote address, local port, and remote port; and connection security indicating security to be applied to a connection through which data that satisfies the conditions transits.
  • 19. The computer-readable medium of claim 18 wherein the connection security specifies authentication and encryption.
  • 20. The computer-readable medium of claim 18 further includes an authentication method and a crypto suite.