Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitre/google-chrome-v2r6-stig-baseline
(WIP) Google Chrome Windows Security Technical Implementation Guide
https://github.com/mitre/google-chrome-v2r6-stig-baseline
lockheed-martin mitre mitre-corporation mitre-saf saf
Last synced: about 1 month ago
JSON representation
(WIP) Google Chrome Windows Security Technical Implementation Guide
- Host: GitHub
- URL: https://github.com/mitre/google-chrome-v2r6-stig-baseline
- Owner: mitre
- License: other
- Created: 2022-06-29T18:06:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T21:10:47.000Z (about 2 years ago)
- Last Synced: 2024-04-14T19:41:19.565Z (8 months ago)
- Topics: lockheed-martin, mitre, mitre-corporation, mitre-saf, saf
- Language: Ruby
- Homepage:
- Size: 74.2 KB
- Stars: 3
- Watchers: 23
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google_Chrome_Current_Windows
## Running This Profile Directly from Github
Against a remote target using ssh with escalated privileges (i.e., InSpec installed on a separate runner host)
```bash
# How to run
inspec exec https://github.com/mitre/google-chrome-v2r6-stig-baseline/archive/master.tar.gz -t ssh://TARGET_USERNAME:TARGET_PASSWORD@TARGET_IP:TARGET_PORT --sudo --sudo-password= --input-file --reporter=cli json:
```Against a remote target using a pem key with escalated privileges (i.e., InSpec installed on a separate runner host)
```bash
# How to run
inspec exec https://github.com/mitre/google-chrome-v2r6-stig-baseline/archive/master.tar.gz -t ssh://TARGET_USERNAME@TARGET_IP:TARGET_PORT --sudo -i --input-file --reporter=cli json:
```Against a local Red Hat host with escalated privileges (i.e., InSpec installed on the target)
```bash
# How to run
sudo inspec exec https://github.com/mitre/google-chrome-v2r6-stig-baseline/archive/master.tar.gz --input-file --reporter=cli json:
```
### Different Run Options[Full exec options](https://docs.chef.io/inspec/cli/#options-3)
## Running This Baseline from a local Archive copy
If your runner is not always expected to have direct access to GitHub, use the following steps to create an archive bundle of this profile and all of its dependent tests:(Git is required to clone the InSpec profile using the instructions below. Git can be downloaded from the [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) site.)
```
mkdir profiles
cd profiles
git clone https://github.com/mitre/google-chrome-v2r6-stig-baseline.git
inspec archive google-chrome-v2r6-stig-baseline
sudo inspec exec --input-file --reporter=cli json:
```For every successive run, follow these steps to always have the latest version of this baseline and dependent profiles:
```
cd google-chrome-v2r6-stig-baseline
git pull
cd ..
inspec archive google-chrome-v2r6-stig-baseline --overwrite
sudo inspec exec --input-file --reporter=cli json:
```## Using Heimdall for Viewing the JSON Results
![Heimdall Lite 2.0 Demo GIF](https://github.com/mitre/heimdall2/blob/master/apps/frontend/public/heimdall-lite-2.0-demo-5fps.gif)
The JSON results output file can be loaded into __[heimdall-lite](https://heimdall-lite.mitre.org/)__ for a user-interactive, graphical view of the InSpec results.
The JSON InSpec results file may also be loaded into a __[full heimdall server](https://github.com/mitre/heimdall)__, allowing for additional functionality such as to store and compare multiple profile runs.
## Authors
## Special Thanks
* Lockheed Martin## Contributing and Getting Help
To report a bug or feature request, please open an [issue](https://github.com/mitre/google-chrome-v2r6-stig-baseline/issues/new).# Appendix - (For Developers Interested in Running Hardening Tests):
This repository uses either [Beaker](https://github.com/puppetlabs/beaker) to
run tests or the [KitchenCI](http://kitchen.ci) framework to run tests on the
various profiles. Please see the documentation below on how to use each of the
frameworks.# Testing with Beaker
To run the tests, perform the following actions:
1. Have Ruby 2.3.0 or later installed
2. Run `bundle install`
3. Run `rake beaker:suites`### Debugging
If you need to debug your systems, you can run Beaker with a couple of options:
1. Preserve the VM unconditionally
- `BEAKER_destroy=no rake beaker:suites`
2. Preserve the VM unless the tests pass
- `BEAKER_destroy=onpass rake beaker:suites`You can then access the VM by going to the root level of the repository and
navigating to `.vagrant/beaker_vagrant_files/`.You should find a `Vagrantfile` at that location and can use any standard
[Vagrant CLI Commands](https://www.vagrantup.com/docs/cli/).The most useful of these will be `vagrant status` and `vagrant ssh `.
## Test Layout
The tests are housed under the `spec/acceptance` directory and use the
profiles in `spec/fixtures/inspec_profiles` during testing.# Testing with Kitchen
## Dependencies
- Ruby 2.3.0 or later
- [Virtualbox](https://www.virtualbox.org)
- [Vagrant](https://www.vagrantup.com)#### _Notes to Windows Users_
1. An installation of ChefDK may generate conflicts when combined with the
installed kitchen gems. **Recommend NOT installing ChefDK before testing
with this repo.**2. If you run into errors when running `bundle install`, use the following
commands to install gems:- `gem install kitchen-puppet`
- `gem install librarian-puppet`
- `gem install kitchen-vagrant`3. If the tests are not found when running `kitchen verify`, open
`.kitchen.yml` and consult `inspec_tests` under the `suites` section.4) You may also experience an error when running `kitchen converge` where a
folder is unable to be created due to the length of the path. In this case,
you may need to edit a registry key as explained
[here](https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/).## Setting up your box
1. Clone the repo via `git clone -b dev https://github.com/simp/inspec_profiles.git`
2. cd to `inspec_profiles`
3. Run `bundle install`
4. Run `kitchen list` - you should see the following choice:
- `default-centos-7`
5. Run `kitchen converge default-centos-7`
6. Run `kitchen list` - your should see your host with status "converged"## Validating your box
**Note:** Once the open issues are resolved in InSpec and kitchen-inspec these
steps will not really be needed but for now we have to do a few things a bit
more manually. Once resolved fully, you will only need to run `kitchen verify (machine name)` and everything will be taken care of.### In the 'inspec_profiles' dir ( manually )
1. cd `.kitchen/`
2. vi default-centos-7.yml
3. copy the `ssh_key:` value for later
4. note the mapped port value ( usually `2222`) and use in the next step### In the 'inspec_profiles' dir
1. On the terminal: `export SSH_KEY=(value from before)`
2. cd to `inspec_profiles`- (optional) run an `inspec check`, and
ensure there are no errors in the baseline.3. run: `inspec exec -i $SSH_KEY -t ssh://[email protected]:2222 ( or the port mapped from step '4' above )`
- (optional) `inspec exec controls/V-#####
- -i \$SSH_KEY -t
ssh://[email protected]:2222` to just test a single control
- (optional) `inspec exec -i $SSH_KEY --controls=V-#####,V-##### -t ssh://[email protected]:2222` to just test a
small set of controls# Hardening Development
Included in this repository are testing scripts which allow you to run the profile using Vagrant or EC2 VMs. You can choose which environment your VMs are run in by passing the appropriate test-kitchen `yml` file to your `KITCHEN_LOCAL_YAML` environment variable. All of the commands below use the `kitchen.vagrant.yml` file as an example, however a `kitchen.ec2.yaml` is also available in the repository and can be substituted below to run the tests in EC2.
- Making Changes and Testing
- run `CHEF_LICENSE=accept KITCHEN_LOCAL_YAML=kitchen.vagrant.yml kitchen converge (machine name)` - runs any changes to your hardening scripts
- run `kitchen verify (machine name)` - runs the inspec tests- Starting Clean:
- run `CHEF_LICENSE=accept KITCHEN_LOCAL_YAML=kitchen.vagrant.yml kitchen destroy (machine name)` kitchen will drop your box and you can start clean
- Going through the entire process ( create, build, configure, verify, destroy )
- run `CHEF_LICENSE=accept KITCHEN_LOCAL_YAML=kitchen.vagrant.yml kitchen test (machine name)` or to test all defined machines `kitchen test`
- Just running the validation scripts
- run `CHEF_LICENSE=accept KITCHEN_LOCAL_YAML=kitchen.vagrant.yml kitchen verify (machine name)`
- just run one or more controls in the validation
- edit the .kitchen.yml file in the `controls:` section add the `control id(s)` to the list### NOTICE
© 2018-2022 The MITRE Corporation.
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
### NOTICE
MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.
### NOTICE
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.
### NOTICE
DISA STIGs are published by DISA IASE, see: https://iase.disa.mil/Pages/privacy_policy.aspx