Saturday, January 7, 2012

Multiple Vulnerabilities Reported in CoDeSys by ICS-CERT

Yesterday the DHS Industrial Control System Cyber Emergency Response Team (ICS-CERT) published an interesting advisory for the 3S Smart Software System CoDeSys product. The advisory actually covers 5 separate vulnerabilities in the system, one reported by Celil Unuver (SignalSec LLC; a coordinated disclosure) and five (one reported by both) reported by our old friend Luigi (Unanticipated; a new term being used by ICS-CERT for uncoordinated disclosures).

Political Oddities


Before looking at the actual vulnerabilities, let’s look at some odd things about this advisory that make it interesting. First I thought that it was odd that Luigi would report five vulnerabilities on a particular ICS at the same time that ICS-CERT was preparing to publish an advisory on the same system, containing one of the same vulnerabilities. I went back and re-read the ‘Overview’ section of the advisory to see if there had been a previous alert on the Luigi vulnerabilities and there is no listing of one.

But the CoDeSys vulnerabilities sounded familiar so I searched my blog and sure enough I reported twice (December 3rd, December 8th) on an ICS-CERT alert (ICS-ALERT-11-366-01A) on these CoDeSys vulnerabilities. In the latest blog on that alert I posited that it appeared that Celil Unuver had become dissatisfied with the pace of the mitigation development on the vulnerability that he had identified and as a result he publicly disclosed the vulnerability.

Now ICS-CERT normally refers back to alerts when their advisory provides the mitigation for a publicly disclosed vulnerability; no rule says they have to, but that has been their general practice. Does not referring back in this instance have to do with 3S finally getting the mitigation completed so ICS-CERT no longer wants to apply pressure to them? I don’t know, but it looks that way.

Security Implications


The second odd thing about this advisory is related to an issue that I have discussed on a number of occasions, software components. ICS-CERT has previously noted that a couple of their reported vulnerabilities could affect more than just the reported software as that product is used as a component of other control system software products (and never did identify which products were vulnerable by association). This advisory extends that problem into the hardware realm.

According to this advisory “CoDeSys is used across several sectors of the automation industry by manufacturers of industrial controllers or intelligent automation devices [emphasis added]and by end users in different industries including system integrators who offer automation solutions using CoDeSys” (page 2). I’m not sure, but it sounds to me like CoDeSys is incorporated in the firmware or software embedded within the control devices. That could, in turn, make those devices susceptible to one or more of the vulnerabilities listed in the alert. Does that mean that these manufacturers should offer firmware updated to correct the security problems? I think so.

The Vulnerabilities


As noted earlier there are five vulnerabilities listed in this advisory. They all would allow a low skill level attacker to remotely execute a DOS attack and a higher skilled attacker to remotely execute arbitrary code. The vulnerabilities are (with active CVE file links):

• Integer Overflow, CVE-2011-5008;

• Stack Overflow, CVE-2011-5007;

• Content-Length NULL Pointer, CVE-2011-5009;

• Invalid HTTP Request NULL Pointer, CVE-2011-5009

• Folders Creation, no CVE #

Luigi noted in his disclosure that the file folder creation situation wasn’t really a vulnerability since he couldn’t see how it could be used in an attack, but it was an odd enough thing that he wanted to report it. ICS-CERT seems to accept that reasoning and that may be why there is no CVE # associated with that vulnerability.

3S has produced a new version of CoDeSys that does not contain these vulnerabilities and, according to the advisory, Luigi has verified that the new version corrects these problems.

Friday, January 6, 2012

TWIC-HME Compatibility

A blog post yesterday by Laurie Thomas, a frequent reader of this blog and one of my go-to sources for MTSA information, on her MTSA News blog points out that the TSA is making some efforts to harmonize some of the various background checks that it is responsible for, in this case the Transportation Workers Identification Credential (TWIC) and the Hazardous Material Endorsement (HME) to be issued with State Commercial Drivers Licenses (CDL).

Laurie points us at the ‘Latest News’ section of the TSA TWIC web site for the available information on this new program for Comparable HME’s.

(Oops… Did you know that the term ‘TWIC’ is a registered trademark? According to this web site it is, so we are in violation of trademark law unless we include the ‘®’ when we use the word ‘TWIC’. Too bad TSA, I don’t think anyone will follow this rule; you have wasted the time, effort and money. Failure to enforce trademark enfringement invalidates the registration)

I don’t get to this site often so I don’t know when this news item was posted (and TSA isn’t helpful in this regard, they don’t date entries the way the ISCD folks do over at the CFATS Knowledge Center do), but from the wording it looks like it was probably sometime last month. It says that this program will start in ‘January 2012’ and more information will be provided as the implementation date approaches.

Basically what TSA is doing is that it will use the existing TWIC background check data for the approval of an HME. This should reduce their time and cost. The cost savings will be passed on to the applicant in reduced fees; no information yet available on how much reduction there will be. Of course this requires a State to accept the Comparable HME check. The TSA site promises a list of the States that do accept it, but it’s not there yet.

It would seem to me, though, that there should be an even easier way to accomplish this. If an HME applicant (new or renewal) presents a TWIC at the State DMV office when they apply for an HME, all the DMV officials should have to do is to verify the TWIC is current and the identity matches and no TSA Security Threat Assessment (STA) fee should be required. Of course, the biometric identity verification can’t really be done until the TWIC Reader Rule is adopted in 2010 (oops, the NPRM hasn’t even been submitted to OMB yet).

Oh well, if and when this actually happens it will save drivers some money and hassle; that would be a good thing.

Thursday, January 5, 2012

ICS-CERT Updates an Advisory and Issues New Siemens Advisory

Earlier today the DHS Industrial Control System Cyber Emergency Response Team (ICS-CERT) updated a month old advisory for an Invensys product and issued a new advisory for another Siemens control system product.

Invensys Advisory Update


It’s a good thing that there was a new advisory issued today because the change on the Invensys Wonderware InBatch advisory is a small update that probably would not have been worth a standalone blog entry. ICS-CERT changed the CVE file number (CVE-2011-4870) for the vulnerability. The CVE number (CVE-2011-3141) in the original version of the advisory pointed at a different Invensys vulnerability file from August 16th of this year.

BTW: Last week ICS-CERT started explaining the delay in activating the CVE files. The explanation is contained in the footnote containing the file link. That explanation has been on every advisory since the Siemens advisory of December 27th and it reads:

“NIST uses this advisory to create the CVE website report. This website will be active sometime after publication of this advisory.”

New Siemens Advisory


The Siemens advisory deals with two ActiveX component vulnerabilities in the Siemens FactoryLink application. Reported by Kuang-Chun Hung of Taiwan’s Information and Communication Security Technology Center (ICST) was released on the US-CERT secure portal last month.

A buffer overflow vulnerability could allow a moderately skilled attacker to remotely execute arbitrary code via a social engineering attack. The second vulnerability is a data corruption vulnerability that would also require a moderately skilled attacker to use a social engineering attack vector.

Siemens has released a patch to address these vulnerabilities and ICS-CERT is also recommending that owner/operators should install Microsoft Security Advisory 2562937 as another part of the mitigation program for this system.

Wednesday, January 4, 2012

Second Session of the 112th Congress

Boy, the folks over at the Congressional Record must have had a glorious drunk on New Year’s Eve since they were apparently still hung over last night. That’s the only explanation that I have for the totally f… er messed up record of yesterday’s first day of the second session of the 112th Congress.

According to the Daily Digest, the Senate was not in session yesterday, but they will “next meet at 12 noon on Tuesday, January 3, 2012, in a pro forma session and convene the 2nd session of the 112th Congress”. Well, I guess that more than one person has complained that the Senate didn’t do anything when it was there, so yesterday they ‘will meet’ in a session that didn’t happen.

The House apparently did meet in pro-forma session, they adjourned three minutes later and then reconvened 52 minutes later to adjourn Sine Die one minute later. Maybe the Speaker pro tempore’s father didn’t tell him about going to the bathroom before starting something important.

It’s not clear when the two bodies will meet again, though the Constitution does call for them to meet on January 17th. The last page (D 1408) of the Daily Journal notes that they will both meet next on January 3rd at 12 noon.

Thank goodness there was no real news to record in the official record of the Congress of the United States for January 3rd; whenever that will be or was. I just hope that this isn’t an omen of things to come.

NOTE: As of 13:50 pm EST, 1-4-12, the above Daily Digest link now takes one to a new version of the Daily Register for January 3, 2012. The new version makes a lot more sense and starts new page numbering as one would expect for the first entry for the second session of the 112th Congress.

Dow Hack Prediction

Yesterday I made a late entry into the ‘Predictions for 2012’ game that is standard fare for so many columns and blogs. In the closing paragraph I made prediction that caught a lot more attention than I had expected. I wrote:

“I’ll go out on a very thick limb here and predict that we are going to see major new action in the merger of political activism, the anarchy movements, and computer hacking. This will be the source of major news stories for this year. I would not be surprised to hear that DOW gets major attention for their sponsorship of the Olympics and it could include one or more control system hacks, most likely a DOS type attack shutting down one or more production facilities.”

Dale Peterson over at DigitalBond.com (which I periodically write for) was kind enough to tweet that this was a “bold, specific prediction”. I certainly thank Dale for that comment as it did draw some new readers to this blog, but a closer look at my reasoning will show how easy a prediction it was to make.

Dow as a Target


I have long maintained in this blog that potential threats against high-risk chemical facilities come from far more than just al Qaeda and its loosely linked wannabes. The radical fringes of the environmental movement have long lists of reasons to want to attack chemical companies in general and Dow has got to be high on their list of ‘environmental evil doers’. Dow is a large scale developer, producer, storer and transporter of a number of hazardous chemicals.

When Dow bought Union Carbide ten years ago, they not only acquired new product lines and production facilities, but they also inherited the blame for the 1984 Bhopal ‘gas tragedy’ and the 2,000 to 8,000 deaths associated with that accident. Because of this the International Olympic Committee has come under fire for their accepting Dow’s donations to become an Olympic sponsor for this year’s summer games in London. Demonstrations against, and political attacks on, Dow will certainly continue through the Games this summer.

Finally, Dow is a large multi-national corporation with major amounts of political pull and power in Washington and other capitals around the world. This brings them to the attention of various anarchist movements, making it a potential target for any number of groups with an increasing propensity for small-scale violence and demonstrated capabilities for disruptive behavior and attacks.

Eco-Cyber Attacks


Terrorists always have something of a moral dilemma that they have to deal with; the more successful their attack the larger is the number of innocents that are harmed or killed. When outright psychopathy is not involved this dilemma is resolved by claiming to work for the greater good or even blaming the innocents for complacent complicity in supporting the evil being attacked.

Environmental terrorists have to deal with this quandary as well as the dilemma of their attacks harming the very environment that they are attempting to protect; it’s hard to claim that the environment is complacent. This is one of the reasons that the damage caused by environmental terrorists to date has been physically limited, but this has also limited their political and propaganda exposure.

If a way could be found to limit the environmental consequences of their attacks the number of potential eco-terrorists would increase as more mainstream activists would be able to resolve their moral problems with attacks that cause chemical releases. This favors disruptive attacks more than the ‘conventional’ bomb-throwing, destructive attacks.

This is one of the reasons that I think that we will see the rise of the eco-cyber-attack. Attacks on the control-systems and inventory-management systems of chemical facilities would be just the type of disruptive attacks that could attract larger elements of the environmentalist communities. They would be able to disrupt the production and distribution of objectionable chemicals without causing physical harm to neighboring innocents or the environment.

Anarchists are likely to see the larger benefit from this type of attack as well, but they won’t be as limited in their target selection. Political and economic process controls will also be very susceptible to this type of attack with data centers being prime targets.

Dow as Cyber Security Leader


There is one factor that I did forget to mention in my original post, Dow Chemical has been a leader in the chemical industry for the development of cyber security defenses. I do not know how much of that has been concentrated on the process-control side of their computer systems, but I would suspect that they would have some of the best protected control systems in the industry.

While this would make it more difficult to conduct a DOS style attack on Dow control systems, it would certainly not make such an attack impossible or even unreasonable. With the proliferation of control system vulnerabilities (particularly those favoring DOS attacks), I would be very surprised if a dedicated hacker couldn’t find a way to make it happen.

And don’t ever forget that in the hacker community the more difficult the target the more credit the successful hacker gets for their accomplishment. And the easier it will be for less skilled followers to use the same techniques on less well protected systems.

Tuesday, January 3, 2012

Welcome to 2012


Today is the first business day of the New Year and marks the official end of the Holiday Season. It also is a good time to review what is in store for the chemical- and cyber-security communities for the new year.

Congress


In case you hadn’t noticed this is another election year with all of the House members, 1/3 of the Senate and the President up for election. As we proceed with the year the amount of influence that these pending elections will have on Congressional Action will become more and more pronounced.

We finally got the FY 2012 budget settled at nearly the last minute of last year. Today marks the start of the new budget process. The President will submit the FY 2013 budget request later this month. Congress will hold some hearings where the Department Secretaries explain what the President is asking for, but will otherwise ignore the budget request. There will again be major disputes between the House and Senate and most of the budget will be resolved in a lame duck session in November and December.

We may get stand-alone CFATS legislation passed in the House before the Summer Recess, but that might get held-up by hearings on the ISCD report. There are still no indications about which House bill will get considered, but which ever makes it to the floor will almost certainly get passed. I do expect some interesting amendments will come out of the ISCD problems. There will almost certainly not be any Senate action on the bill before the elections. Lame duck action will depend on the election results.

Cyber security legislation will almost certainly pass early this year. The main focus of the legislation will be on IT and personal information security issues as well as the security of federal computer systems. Only minor bones will be thrown to the control system community.

DHS


Problem solving at ISCD will further slow the implementation of site security plan approvals for the first part of the year. It’s hard to tell for sure how long without seeing the actual report, but it could get further slowed by Congressional assistance. Hopefully we will see ISCD action on at least some of the following promised actions:

• CFATS De-enrollment Tool;
• Personnel Surety Tool;
• Update of SSP Tool;
• Update of Appendix A; and
• MTSA Harmonization.

We will almost certainly not see any further action on the Ammonium Nitrate Security Program in 2013.

There may be some movement on MTSA related issues this year as we are expecting to see some new rulemaking for CFATS harmonization, a variety of TWIC issues and the long expected TWIC Reader Rule. Unfortunately, none of that will be final rules.

TSA could be the surprising actor this year with action on the long-overdue trucking and railroad security training rules. There could be more backing into regulatory action on pipeline security. Again we are a long way from final rules on any of that.

Hacktavism


I’ll go out on a very thick limb here and predict that we are going to see major new action in the merger of political activism, the anarchy movements, and computer hacking. This will be the source of major news stories for this year. I would not be surprised to hear that DOW gets major attention for their sponsorship of the Olympics and it could include one or more control system hacks, most likely a DOS type attack shutting down one or more production facilities.

Sunday, January 1, 2012

Chemical Inspectors and ISCD Problems

I got an interesting email from a reader last week who has an interest in becoming a chemical facility security inspector (CFSI) for the CFATS program at DHS. After reading the FoxNews.com story about the problems at ISCD he was concerned about how those problems might affect his prospects for future employment in that area. That question has specific meaning for the reader, but is also of a more generic concern for the chemical security community.

First off, let me make clear that, in my opinion, the CFATS program is going to be around for quite some time. There has been no serious talk by anyone in Congress about disbanding the program and many who want to see the program expanded to include some of the classes of facilities that are currently exempted from CFATS coverage. In fact, the political debate about the CFATS program has always been about the scope and coverage of the program, not the need for a chemical security program.

Shortage of Chemical Security Professionals


One of the weak spots in the CFATS program has always been the CFSI. This is not due to any personal or professional shortcomings of the current crop of CFSI, but rather the fact that until very recently there was no such thing as a chemical security inspector. In fact, there have been virtually no chemical security personnel at all.

Okay, there have been security personnel at chemical facilities for a long time and their number certainly increased after 9-11, but for the most part these have been standard security personnel concerned with standard security matters such as entry control, perimeter patrols, and loss prevention. The number of people that understood the unique security aspects of process chemistry, both as targets and as potential weapons, was extremely small and most were concerned about security of overseas chemical facilities owned by the major chemical companies.

In the same way there were very few people in the chemical processing industry who really understood security; locks, fences, and rent-a-cops seemed to be adequate security to most chemists and engineers.  Even then the basic necessities of those programs such as key control, clear zones and gate procedures were beyond the understanding or concern of chemical professionals.

CFSI Training Issues


Because of the lack of chemical security professionals, the bulk of the first CFSI hired and trained by ISCD were in fact security professionals; security managers, inspectors and law enforcement types. Most of them came from backgrounds in the Federal Government since this eased many of the vetting requirements.

This created a bit of a training problem for ISCD. While the training should have been concentrated on CFATS related issues (§550 restrictions, RBPS guidelines, etc) much of the focus of the Chemical Facility Security Academy had to do with chemical process and safety issues. Security personnel had to be trained in the basics of chemical process language, equipment, and chemical handling as well as the standard OSHA mandated training for personnel operating in chemical processing facilities. And there had to be at least a couple of trips to actual chemical processing facilities so that CFSI wouldn’t be totally overwhelmed by the complexity of things when they strolled into their first official inspection.

With all of that on the docket there certainly wasn’t time in the 8 week training program to include such things as the pros and cons of various security and chemical safety devices, cybersecurity fundamentals for both IT and control systems, personnel surety standards (that still don’t exist) and a whole host of other matters that would need to be evaluated in chemical security inspections.

I know that ISCD has attempted to recruit more personnel from the chemical industry to fill vacated and new CFSI positions. I have seen no figures to date on the success of that effort, but even if successful, that only complicates the training problem as people with chemical backgrounds have to be taught all of the standard security stuff about which they are clueless.

This training issue is going to plague the CFATS program for the foreseeable future. Until there is a stable stream of personnel with industry experience as chemical security professionals ISCD will be hiring people that lack significant parts of the skill sets needed to be a CFSI. One of the best places that DHS could put some chemical security grant money is to one of the schools that has an industrial chemistry program (a relatively new discipline of its own) to develop a degree program for chemical security professionals.

CFSI Requirements


In my opinion, a CFSI should first be a chemical professional. This means at least a BSc degree in chemistry or chemical engineering, perhaps industrial hygiene. Experience working in a chemical processing facility would be a plus. This background would provide the CFSI the ability to speak with and understand the engineers and chemists that run most facilities.

I don’t mean to denigrate the skill and knowledge necessary to be a security professional, but a large part of the knowledge base in that profession will not be of much use in a chemical processing environment. Besides, the §550 restrictions on specifying security requirements will get many people from a real security background in trouble in the field.

A law enforcement background will not be particularly useful in this position. The skills and training necessary to be a cop do not really apply to security (though cops will generally understand security better than chemists) and there is little need for the investigational skills associated with law enforcement. Any actual attacks or suspected attacks will be investigated by local police or the FBI not ISCD.

Restricting the hiring of CFSI to people with a chemical background will make the training problem easier for the Chemical Security Academy. They would be able to concentrate on security issues and program requirements.

So You Sill Want to be a CFSI?

So after all is said and done what does it take to become a CFSI? The short answer is you put in an application when a position vacancy is announced on USAJobs.gov. I just did a search and there are no such jobs currently listed. You can set up an account on the site and have them notify you when a vacancy is announced. You’ll have to use the ‘Advanced Search’ option and I would limit the search to DHS and NPPD under the ‘Agency Search’ option.

What qualifications are necessary? Well you have to be a US Citizen and be capable of getting a Secret security clearance. Beyond that you’ll have to look at the announcement in USAJobs.gov. This is still an evolving position and I expect further changes to be made in the job requirements based on the ISCD report (though I still haven’t seen the report).

What are your prospects of getting hired? That’s a good question. There are only a limited number of positions available (160 is the latest figure that I recall) and I believe that most are currently filled. I don’t see a major expansion any time soon. I don’t know how much of a turnover the Department is having (I would hope that the ISCD report touches on that, but we still haven’t seen a publicly released copy), but I don’t expect that it is real high.

Oh yes, expect to have to move. DHS has been advertising these positions as location specific for a regional office and the last listing that I saw said that they would not pay relocation expenses for new hires.
 
/* Use this with templates/template-twocol.html */