GithubHelp home page GithubHelp logo

mitre / oracle-database-12c-stig-baseline Goto Github PK

View Code? Open in Web Editor NEW
4.0 23.0 6.0 1.05 MB

InSpec profile for the Oracle Database 12c DISA STIG

License: Other

Ruby 100.00%
inspec mitre-corporation inspec-profile oracle-database profile stig disa disa-stig

oracle-database-12c-stig-baseline's Issues

Attributes should be assigned inside control block

When the attribute is assigned outside of the code block and you run the profile as a whole you get a bit of slowdown and congestion since it tries to assign the attribute but finds that it's already been initialized. We came across this issue a lot in the old style of creating attributes in InSpec.

If the attributes are moved within the control block you will get a bit faster run time and remove the warning messages that pop up when running commands on the profile.

Example of what the issue looks like:
attribute issue

List of controls with attributes outside of control block:

  • V-61415
  • V-61433
  • V-61437
  • V-61439
  • V-61445
  • V-61451
  • V-61459
  • V-61461
  • V-61467
  • V-61507
  • V-61589
  • V-61599
  • V-61653
  • V-61655
  • V-61657
  • V-61659
  • V-61661
  • V-61663
  • V-61669
  • V-61673
  • V-61679
  • V-61681
  • V-61683
  • V-61869

Fix V-61415

There are no NA cases in this control, just pass or fail and a skip.

Not a finding - means pass the test no NA

Sample Data

Unhardened data already exists, would also need hardened results in the profile.

Fix V-61411

The logic seems like it should be:

the describe blocks for both should always ensure that the result should_not be 0 - if the count is zero then this is a finding.

on the first query - if you have any results - the results should be saved and displayed and the second describe block should skip if > 0 and display the ask the DBA / ISSO if #{results} are acceptable.

General - correct logic on "no user profiles found"?

When/if we encounter this situation, is this the correct logic to implement?

if user_profiles.empty?
describe 'There are no oracle user profiles, therefore this control is N/A' do
skip 'There are no oracle user profiles, therefore this control is N/A'
end
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.