cisagov / cset
- воскресенье, 4 июля 2021 г. в 00:27:51
Cybersecurity Evaluation Tool
Download CSET For Windows: CSET 10.1.1 Standalone Installer
What is CSET? CSET Overview
How Do I Use CSET? CSET User Guide
File Checksum Integrity Verifier version 2.05. csetstandalone.exe
MIT License, Apache License 2.0
Copyright 2018 Battelle Energy Alliance, LLC
See License.txt, and NOTICE.txt
Contact information of authors: cset@hq.dhs.gov
Idaho National Laboratory, P.O. Box 1625, MS 3870, Idaho Falls, ID 83415
Includes software licensed under LGPL
LGPL dependencies are required to build CSET. You will be required to aquire them via nuGet in order to build this software. They are not distributed with this source.
This application uses Hangfire software as a nuGet dependency.
Double-click on the CSETStandAlone program.
The User Account Control dialogue will come up (Fig.1). Select "Yes".
Figure 1: User Account Control box
A CSET dialogue will open asking if you want to install the CSET Desktop (Fig.2). Select "Yes".
Figure 2: Install dialogue
The program will begin extracting.
After extracting a CSET Setup dialogue will open (Fig.3). Select "Install".
Figure 3. CSET Setup
CSET will begin to install. If the user doesn't have IIS 10.0 Express, CSET will install it. The IIS 10.0 Express Setup dialogue will open (Fig.4). Click the check box to confirm that you "…accept the terms in the License Agreement", and then select "Install".
Figure 4. IIS Setup
IIS will install. Select "Finish" when it completes.
The CSET Setup Wizard will open to walk the user through the install process (Fig.5). Select "Next".
Figure 5: Setup Wizard
A disclaimer will open (Fig.6). Read through and then click the box "I read the disclaimer", and select "next".
Figure 6: Disclaimer
CSET will choose a default folder to install CSET to, but you can change this in the Destination Folder dialogue (Fig.7). Select "Next".
Figure 7: Destination Folder
The CSET Installer will show that it is ready to install (Fig. 8), select "Install".
Figure 8: Ready to Install
CSETis installed. Make sure that the "Launch CSET when setup exists" box is checked, and select "Finish".
The user should see a setup successful dialogue (Fig.9), and then have an option of how they want to open the app. For this example, Edge was used.
![][fig9.png]
Figure 9: Setup Successful
The user has access to CSET as Local User. The Local Installation ribbon is visible at the top of the screen. They can see their landing page with no assessments at this time (Fig.10).
Figure 10: Local Install Landing Page
This documentation is provided to assist users in navigating the basics of the CSET® Enterprise Edition. Here users will find step-by-step directions for installation, configuration, and setup, as well as links to various resources to assist in this process.
Download the CSET Enterprise Files from the CSET® releases page. Click "CSET_10.1-Binary.zip" file to download it. Once the download is complete, you will need to unzip the folder.
We will be using Microsoft SQL Server 2016 for this setup. If you need to, you can download the Express version from Microsoft directly a. CSET® requires your server to have the URL Rewrite Module installed as well. Again, this can be downloaded directly from Microsoft
If you are using an SQL Server, download and install Microsoft SQL Server Management Studio (SSMS)
Input your product key (if needed) and accept the licensing terms to continue the installation.
The defaults for most of the sections will be just fine. However, the two sections you will need to modify are “Feature Selection” and “Database Engine Configuration.”
Feature Selection (see below) – When you are prompted to select specific server features, check the “Database Engine Services” box and then continue.
Database Engine Configuration (see below) – At the Database Engine Configuration screen, select the “Mixed Mode (SQL Server authentication and Windows authentication)” option.
Under the same section, you will be asked to create and input a password for the system administrator account. Make sure to remember this information!
Finally, click the Add Current User button at the bottom. This will populate your current windows account as a user. Once that is complete, click “Next.”
The final step is to click the Install button to finish up this process. Once this is complete, you can close out of the Server Setup window.
Open the CSET® Dist folder that you downloaded earlier and navigate to the “Data” subfolder. Inside this folder you will find two files called “CSETWeb” and “CSETWeb_log.” Copy these two files to your server.
Open Microsoft SQL Server Management Studio (see below) and connect to the SQL Server that we setup previously.
If IIS and the SQL Server instance are running on the same machine, you can use “localhost” as the domain name. Otherwise, you will need the specific domain or IP address to connect properly.
On each of the same lines, you will need to update the “Integrated Security=SSPI” section to reflect your SQL Server specific login info.
If you are using the Windows domain authentication method, then you will use “Trusted_Connection=SSPI” instead of a user ID and password
Save and close the Web.config file.
If you receive an error stating that you do not have permissions to save the Web.config file, find the file inside the wwwroot folder and right-click on it. Select properties and go into the security tab. Click on the edit button and make sure that all users have “Full Control” over the file.
Go back to the “Internet Information Services (IIS) Manager” and on the right, make sure the server is running. You may now browse to your Enterprise CSET® Installation!
There are two ways to add a new user to your freshly created CSET® Stand-Alone. The first way is to register for a new account inside the CSET® application itself. This will require a valid mail host as user’s will be required to enter their email address and receive a confirmation email on your network.
The second way to add a new user to your CSET® Application is to use the “AddUser” program. This tool is intended more for testing purposes than company-wide use. It allows anybody to create a new user without the email check and should only be used by administrators. As such, do not place this program in a public or shared folder on your system. This tool can be downloaded from the CSET github page found here. Simply click on the "AddUser.zip" link to download the file.
An SSL certificate is a web technology that establishes a secure link between a web server and a browser. This link encrypts all data (such as passwords) so that your server is more secure.
This documentation is provided to assist users in installing and running CSET locally for development.
Note: VSCode and Visual studio are two diffent IDE's VS Code is used for Front end UI (CSETWenNg) while Visual Studio is used for the backend (CSETWebAPI)
cd cset
Here you can open VSCode and run these commands from the terminal within VSCode.
cd CSETWebNg
npm install
or npm i
ng serve
CSETWeb_Api.sin
for project file.Web.config
and change the settings in connectionStrings
according to CSET ConfigurationThis will open a window in the default web browser to confirm that the db is connected.
ng serve
node_modules
npm cache clear --force
npm install
ng serve
Package issues when running ng serve
Example: When Atampting to run the server, there is a issue that presents such as:
SyntaxError: Unexpected token 'if'
or when inspected via a log file:
[error] /Users/bob/projects/cset/CSETWebNg/node_modules/lodash/lodash.js:3980
if ((key === '__proto__' || key === 'constructor' || key === 'prototype')) {
^^
SyntaxError: Unexpected token 'if'
at wrapSafe (internal/modules/cjs/loader.js:1053:16)
at Module._compile (internal/modules/cjs/loader.js:1101:27)
...
Here the issue is with the package seen: lodash
To fix this simplie run npm install --save lodash
After installing, rerun server ng serve
To run production locally:
Copy values from:
../cset/CSETWebNg/src/environments/environment.ts
into
../cset/CSETWebNg/src/environments/environment.prod.ts
with production: true
then run ng serve --prod
Moustrap Error:
When compiling, an error shows:
ERROR in node_modules/angular2-hotkeys/lib/hotkeys.service.d.ts:10:16 - error TS2304: Cannot find name 'MousetrapInstance'.
10 mousetrap: MousetrapInstance;
~~~~~~~~~~~~~~~~~
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
70% building 504/504 modules 0 active
ERROR in node_modules/angular2-hotkeys/lib/hotkeys.service.d.ts:10:16 - error TS2304: Cannot find name 'MousetrapInstance'.
10 mousetrap: MousetrapInstance;
Fix: open file location at node_modules/angular2-hotkeys/lib/hotkeys.service.d.ts
and fix the line where
mousetrap: MousetrapInstance;
to
mousetrap: Mousetrap.MousetrapInstance;
CSETWebApi not building.
On right side of Visual Studio, check under resorces for missing and un updated packages.
reimport and updarte packages as needed. recompile as needed.
Withing connectionStrings
in Web.config
check if creds are set correctly, for local db, the connetion string would look as follows.
<connectionStrings>
<add name="CSET_DB"
connectionString="data source=localhost;initial catalog=CSETWeb;persist security info=True;user id=user;password=password;MultipleActiveResultSets=True"/>
<add name="ElmahConn"
connectionString="data source=localhost;initial catalog=CSETWeb;persist security info=True;user id=user;password=password;MultipleActiveResultSets=True;App=Elmah"
providerName="System.Data.EntityClient"/>
<add name="HangfireConn"
connectionString="data source=localhost;initial catalog=CSETWeb;persist security info=True;user id=user;password=password;MultipleActiveResultSets=True;App=Hangfire"
providerName="System.Data.EntityClient"/>
</connectionStrings>
These settings will connect to a SQL DB running on localhost
with created user: user
with password: password
.
Double check CSET Configuration above for configuration.