Apostol Vassilev, Cybersecurity Expert, Computer Security Division, NIST, Staff Member, CMVP
Why did we come up with IG 9.10 [Power On Self Tests]? There were many open quetions about how software libraries fit into the standard. In particular, CMVP did not allow static libraries - but they existed. We needed to come up with reasons to rationalize our decision, so we could spend time doing things other than ddebating.
Related to this are IG 1.7 (Muliple Approved Modes of Operation) and IG 9.5 (Module Initialization during Power-Up).
The standard is clear in this case - the power-up self tests SHALL be initiated automatically and SHALL not require operator intervention. For a software module implemented as a library, an operator action/intervention is any action taken on the library by an application linking to it.
Let's look a the execution control flow to understand this problem. When the library is loaded by the OS loader, execution control is not with the library UNLESS special provisions are taken. Static libraries are embedded into the object code and behave differently.
How do we instrument a library? Default entry points are well-known mechanism for operator-indeendent transfer of execution control to the library This has been available for over 30 years, and exist for all types of libraries: static, shared, dynamic.
There are alternative instrumentation - in languages like C++, C# and Java you an leverage things like static constructors that are executed automatically upon loading the library containing them when it is loaded.
What if the OS does not provide a DEP mechanism and the module is in a procedural language like C? You can consider switching to C++ or using a a C++ wrapper, so that you can get this functionality. Lucky for my team, Solaris supports _init() functions. :)
Implementation Guidance 9.5 and 9.10 live in harmony - you need to understand and implement both correctly.
Static libraries can now be validated with the new guidance.
Oracle Announces 2018 Oracle Excellence Awards – Congratulations to our “Leadership in ... - We are pleased to announce the 2018 Oracle Excellence Awards “Leadership in Infrastructure Transformation" Winners. This elite group of recipients includ...