<div style="FONT-FAMILY: Arial; COLOR: #000000; FONT-SIZE: 12px"><DIV> </DIV><DIV> </DIV><DIV> </DIV><DIV style="MARGIN: 5px 0px; BORDER-TOP: #bcbcbc 1px solid">To all:</DIV><DIV> </DIV><DIV>In reading IR 7670 (Enterprise Remediation) and CRE (IR 7831) the following possibilities are perhaps noteworthy.</DIV><DIV> </DIV><DIV>1. "Initial discussion of the requirements for Remediation Policy Specification suggests XCCDF could potentially be used for this purpose" paragraph 2.5 IR 7650.</DIV><DIV> </DIV><DIV>2. CRE identifies two kinds of remediation.  One is for software patching and the other is "mitigation workaround" solutions.  </DIV><DIV> </DIV><DIV>XCCDF may be used for patching or for mitigation workarounds (or compensating mechanisms).  </DIV><DIV> </DIV><DIV>3. It may be possible to associate CRE with CCE when a software vulnerability is not addressed by patching, but by modifying the configuration of a second security mechanism (such as a firewall, or router).</DIV><DIV></DIV><DIV></DIV><DIV> </DIV><DIV> </DIV><DIV>David Oliva</DIV><DIV> </DIV><SPAN style="FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 12px">On 03/27/13, <SPAN>Nunez, Luis K<lnunez@mitre.org></SPAN> wrote:</SPAN><DIV> </DIV><DIV style="FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 12px">This is good a conversation worth informing others on. I am cross posting to the Open-SCAP-list and Remediation-dev mailing lists.<BR><BR>I’ve noticed pockets of remediation discussions in the various email-lists and would like to align them to a forum where can work as a collective. <BR>I don’t want to stifle this effort or conversation but would like to move the discussion to the remediation-dev list. The remediation-dev list, is an open list for all to participate, was setup to inform and to foster capabilities to enable automated enterprise remediation. The list members constitute industry vendors and government constituents. It contains experience and knowledge from previous attempts at remediation capabilities. <BR><BR>Some observations on the current discussion. The OpenSCAP remediation capability addresses part of the problem. The current discourse (OpenSCAP XCCDF remediation) is beginning to touch on various Remediation Architectural issues (Workflow, tasking, reporting, OVRL, etc…). As you know the subject of Remediation is broad with many perspectives and implications. Before we spiral out control, I’ve seen it happen many times before with this subject, lets break them down into manageable sets. <BR><BR>For lack of better reference material on Remediation Architecture, I would like to propose the NIST IR 7670 as a frame of reference for topic of discussions. The NIST IR 7670 is by no means a standard, but it is something to reference form a work flow and use cases. Certainly the NIST IR 7670 is subject to revision to suit the needs of the community as it evolves and it invites any and all for critics to make it better. <BR><BR>And so using the â€œDerived Requirements” from the IR 7670 I believe we can have meaningful discourse and solutions. The current discussions on â€œRemediation Scripting” seems to originate and is related to DR 5 â€“ Remediation Policy specification. It would be great to leverage the existing capabilities in OpenSCAP as a way to prototype and exercise elements in the XCCDF specification for remedial needs. We could also use this effort to propose revisions in specifications and guidance as needed. The prototype working code and content will be the mechanism by which a rough consensus from the community is achieved. <BR><BR>Going forward I would like to invite thoughts and ideas to further innovate remediation capabilities.<BR><BR>Thank you.<BR><BR>Link to NIST IR 7670<BR><A class=parsedLink href="http://csrc.nist.gov/publications/drafts/nistir-7670/Draft-NISTIR-7670_Feb2011.pdf" target=_blank>http://csrc.nist.gov/publications/drafts/nistir-7670/Draft-NISTIR-7670_Feb2011.pdf</A><BR>Link to Remediation (dev) Discussion list <BR><A class=parsedLink href="http://scap.nist.gov/community.html" target=_blank>http://scap.nist.gov/community.html</A><BR><BR><BR>Luis Nunez<BR>G022 - IA Industry Collaboration<BR>The MITRE Corporation<BR><A class=parsedLink href="http://www.mitre.org/" target=_blank>www.mitre.org</A><BR><BR><BR><BR>-----Original Message-----<BR>From: scap-se<A class=parsedEmail href="mailto:curity-guide-bounces@lists.fedorahosted.org" target=_blank>curity-guide-bounces@lists.fedorahosted.org</A> [<A class=parsedLink href="mailto:scap-security-guide-bounces@lists.fedorahosted.org" target=_blank>mailto:scap-security-guide-bounces@lists.fedorahosted.org</A>] On Behalf Of Truhn, Chad M CTR NSWCDD, CXA30<BR>Sent: Wednesday, March 27, 2013 11:14 AM<BR>To: Simon Lukasik<BR>Cc: <A class=parsedEmail href="mailto:scap-security-guide@lists.fedorahosted.org" target=_blank>scap-security-guide@lists.fedorahosted.org</A><BR>Subject: RE: Remediation Scripts<BR><BR>I think every option has it's good and bad sides and no clear 'winner' appears to me. I'll try to comment on my feelings of each.<BR><BR><BR><BR>> (*) Remove the fix element from that source XCCDF document<BR><BR>I think this way is always an option. It isn't necessarily graceful, but IMO any admin worth their weight should be able to manage this. But I think this would be a short term 'hacky' way of handling it. It isn't a solution as much as a work around. I'm not saying this is bad, but I don't think it can be called a solution. This might actually work nicely for some scenarios where you know that you don't want Fix ABC on every machine you can just remove it from the source XCCDF and then use that as your 'baseline' XCCDF for the remediation of the rest of the machines. When running on 100s of machines if you can save 5 steps from each that turns into substantial savings.<BR><BR>> (*) Create new (inherited) profile for this special machine<BR>> which has the given Rule unselected. This option is getting<BR>> easier, as Martin has recently added tailoring file support<BR>> into OpenSCAP -> thus your new profile may be in external file.<BR><BR>This might be a workable way to do it. Especially if you are doing offline remediation. Run the initial scan to find out what's broke, review the output, disable the check (which disables the fix), run the remediation, re-run the full scan (no remediation) for final analysis. This doesn't scale well though.<BR><BR>> (*) Use CPE identifier assigned to the fix. If the CPE does not match<BR>> on given system, the fix will not be executed.<BR>> Moreover, I can think of having some file like /etc/NONCRITICAL on<BR>> all my non critical systems. And then having CPE identifier which<BR>> matches this exact file. That way, no fix (with this CPE) will be<BR>> executed unless the machine has /etc/NONCRITICAL.<BR><BR>I think I like this train of thought. More on this below...<BR><BR>> (*) Use offline remediation and proceed as described at <A class=parsedLink href="https://www.redhat.com/archives/open-scap-list/2013-March/msg00016.html" target=_blank>https://www.redhat.com/archives/open-scap-list/2013-March/msg00016.html</A><BR><BR>I would comment similar to the one above about inherited profiles. Scan, review, modify, remediate, scan<BR><BR>> (*) Wait for new SCAP-Workbench, which should allow users to select<BR>> fix elements in GUI.<BR><BR>I can see where this is useful, but I think the majority of users won't have/use a true GUI. I think the concept is valid though.<BR><BR>> (*) File a feature request against OpenSCAP for interactive<BR>> (like: Yes/No/Quit) remediation.<BR><BR>Again, this can be useful especially if you just have a machine or two to handle. This doesn't scale well to large enterprises though, but I definitely think it has it's merits. Maybe if we can create some kind of answer file to automate this it might scale a bit better. But that answer file would have to be handled carefully since every machine might not be identical. You can't just say "Question 1: yes", "Question 2: no", etc because the first question on System A might not be the first question on System B. If the answer can be mapped to a specific identifier and somehow manage the outliers manually it could work. Again, I would have to spend more cycles of thought about it and I'm not software developer so I have no idea how hard/easy this is. I'm just spitballing here.<BR><BR>> > Without thinking about it too much I can't think of a good way to do <BR>> > that without it being cumbersome. But I can say that in my years <BR>> > working with security measures I have never been able to take the <BR>> > 'recommended' solution and fit 100% of it to my system.<BR>> > There are always outliers.<BR><BR>> I understand this. What of the above mentioned approaches would be the viable for You? Or can You see any other?<BR><BR><BR>So building on your /etc/NONCRITICAL topic from above...<BR><BR>I had a similar thought, but I am not sure how feasible it is. In my head the first thing I jump to is a include or exclude file. Kind of hosts.allow/hosts.deny type of thing. <BR><BR>1) Specify a particular id in scap.deny which doesn't get run and either no entry or something like 'All' in scap.allow<BR>2) Deny 'All' with the exception of what is specified in the scap.allow.<BR><BR>This way I can custom tailor which particular remediation steps I want done per box. If the scan decides it wants to remediate ID 1234, it checks the list to see if it should or not, then proceeds based on that input. Now as an admin I just have to read through the checks one time and make a list then I can run the scan/remediation at any time in the future without having to re-invest time in the applicability of the content again.<BR><BR>In MY perfect world (I am sure others would disagree) I would like if the check was performed regardless of the statement in allow/deny and only the remediation step be concerned with it. I have to show every check to my security guys so I am OK with a failed check and no remediation being done. But, again, I have no idea how that would be handled within the content or if it is even really an option. This way I would be pretty OK with having oscap make the changes automatically because I have already declared that the listed elements are OK to be changed.<BR><BR>I could do this within the bash remediation content as well if there is an ability to import functions or if the function declaration is persistent throughout the run (declare it once at the top). If there is some way to check this outside of the bash remediation content (built into some part of the SCAP content or something like that) I think we could skip some issues that would arrive when doing this through the bash content (what happens if I skip the remediation step that declares this function?).<BR><BR><BR>I'm just an admin with no real software development experience so feel free to tell me to go away.<BR><BR>Thanks again,<BR>Chad<BR><BR><BR><BR><HR SIZE=1><BR>_______________________________________________<BR>Open-scap-list mailing list<BR><A class=parsedEmail href="mailto:Open-scap-list@redhat.com" target=_blank>Open-scap-list@redhat.com</A><BR><A class=parsedLink href="https://www.redhat.com/mailman/listinfo/open-scap-list" target=_blank>https://www.redhat.com/mailman/listinfo/open-scap-list</A><BR></DIV></div>