Profiles determine which rules apply to a project scan.
- Open Visual Studio Code (VS Code).
- Click , and then navigate to the project folder.
- Right-click the project.slang file, and then select New File.
- Name the file profile.profile_name.slang, where profile_name is a name for your profile, and then save it in the project folder.
Note: Profiles must be located in the folder with the project.slang file.
- Copy this content, and then paste it in the profile file.
Profile:
title: <profile_name>
description: <profile_description>
Where:
- profile_name is the name of your profile.
- profile_description is a description for your profile.
- To set which rules apply to the profile, add additional lines for options, for example
select_all_rules_except or select rules, and any applicable values.
For example:
Note: These lines should be indented at the same level as title: and description:.
select_all_rules_except:
- local_admin_disabled.slang
- Save the file.
Note: The file name must start with profile. and end with .slang.
- Run this command to export your Slang project including the new added profiles:
slang export <project_name> <project_name>.xml
Where:
- project_name is the name of your project.
Note:
For Windows 10 devices, run this command to export and test your project:
slang export <project_name> <project_name>.xml --scan_config <config_name> --profile profile.general_use.slang
Where:
- project_name is the name of your project.
- config_name is the name of your scan configuration.
The results must have the local_admin_disabled rule marked NOT SELECTED.