Use the Shorthand Language for SCAP (“Slang”) to quickly create standards-based compliance, vulnerability, inventory and secure configuration content… without having to learn the underlying Security Content Automation Protocol (“SCAP”).
Follow this guide to:
It should take about 15 minutes.
Before continuing, make sure you have:
[CTRL]
+`
) and run slang -h
to confirm installation.slang scaffold
to create a new project
Project name
, enter: QuickStart
ls ~/Slang
to see the Slang folder that was added to your home folder including:
~/Slang/
QuickStart/ : your new project
schema/ : files used by VS Code Help
license.xml : your Slang license file
Slang.dictionary.html : Slang file format documentation
~/Slang/QuickStart
folder in VS Code (File
, Open Folder
)QuickStart
folder under \Users\<your username>\Slang
project.slang
file contains your project’s general settings and defaults. Open it and:
platform:
is red… you must provide a valid platform. The project.slang
file in Explorer pane should be red for the same reason.platform:
and then press [CTRL]
+[space]
to view the platform list and select one.Open group_1/rule_1.slang
in VS Code and:
local_admin_disabled.slang
(right-click in the Explorer pane and select rename
).title
to Local Administrator Account Disabled
and improve the description
.Add checks here
and start typing windows.
to see a list of suggested checks
windows.account.disabled
account:
, [CTRL]
+[space]
to see suggestions, select Local Administrator
group_1
folder (right-click group_1
, New File
) called password_policies.slang
with the following content:
Rule:
title: Password Policies
description: Password policies for QuickStart.
checks:
- ALL:
- windows.account.lockout_policy:
threshold: 5
duration: 5 minutes
observation_window: 1 hour
- windows.account.password_policy:
maximum_password_age: 30 days
minimum_passwords_remembered: 100
require_password_complexity: true
threshold
to see a popup description of that parameter.ALL:
on line 5? You can also group checks under ANY
, NONE
, NOT_ALL
, ONE
and XOR
.windows.account.password_policy
(your cursor should be indented to left-align with maximimum_password_age
). [CTRL]
+[space]
to see additional password_policy
options. Select allow_reversible_encryption
, click [CTRL]
+[space]
again and select true
or false
.password_policies.slang
group_1
folder to Account_Policies
View
, Problems
) with your Slang. If you don’t see any (and you shouldn’t), change title:
to tattle:
. You should see Problems
now! Fix all Problems and save before continuing.[CTRL]
+`
), run slang export QuickStart quickstart.xml
to export your Slang project to SCAP (XML).exported_scap
containing quickstart.xml
.Congratulations! Now you have an SCAP (XML) file you can run using any standards-compliant assessment engine.
quickstart.xml
in Joval or another SCAP engine.slang -h
, slang export -h
, and slang import -h
.Please contact your account executive or reach out here!