Microsoft Just Enough Administration (JEA) for Discovery
Using Microsoft JEA with Discovery improves security by forcing the MID Server to run remote Windows commands through a constrained endpoint, which validates commands on the target before execution.
Microsoft JEA enables role-based administration through PowerShell Remoting, which uses Windows Remote Management (WinRM) to manage communication and authentication. This framework provides a secure and reliable method for managing computers that use the HTTP protocol. PowerShell Remoting uses two total ports (5985, 5986) for HTTP and HTTPS, which is easier to secure than the multiple ports used in WMI dynamic port mapping. For more information about Microsoft JEA, see Just Enough Administration.
Requirements for Discovery with JEA
- A ServiceNow instance running on the Rome release or later.
- The MID Server and target server must be part of a Windows domain.
- The JEA credentials with non-administrator rights must be domain level credentials.
- PowerShell 5.0 or Windows Management Framework 5.1 must be installed on the target Windows machines.
- PowerShell Remoting must be enabled on the target Windows machines.
JEA Profiles
Discovery with JEA requires profiles composed of a PowerShell Sessions Configuration and one or more PowerShell Role Capabilities files. You can create multiple PowerShell Role Capability files and multiple user groups to assign the roles to different groups as necessary. A sample profile is provided in KB0965705 as a reference implementation and to serve as a starting point. The configuration file in the KB supports all out-of-the-box horizontal Windows patterns at the time that it was created. ServiceNow isn’t responsible for the JEA profile deployment and setup on remote machines.
The following sample profile improves security by blocking attackers if a Windows service account becomes compromised by restricting the MID Server user to execute only scripts signed by a trusted MID Server. After the profile is deployed, the connection between a MID Server and a Windows target is secured by script and parameter signatures created by the MID Server. This provides one layer of security; but monitoring on the ServiceNow instance and the MID Server itself also essential to promoting a secure deployment.
Basic Discovery with the sample JEA Profile
The sample JEA profile provided in KB0965705 was configured to discover many basic configuration items (CIs) and attributes. The profile can be modified and should only serve as a baseline for Discovery with JEA.
- Hostname
- DNS Name
- Serial Number
- Operating System
- OS Version
- OS Service Pack
- Disk Space
- RAM
- CPU Core Count
- CPU Count
- CPU Manufacturer
- CPU Type
It includes the following CIs:
- Network Adaptors (cmdb_ci_network_adapter)
- File System (cmdb_ci_file_system)
- Storage Devices (cmdb_ci_disk)
- Software Installed (cmdb_software_instance)
- Running Processes (cmdb_running_process)
- Memory Modules (cmdb_ci_memory_module)
- Serial Numbers (cmdb_serial_numbers)
- TCP/IP Connections (cmdb_tcp)
- CI IPs (cmdb_ci_ip_address)
- DNS Names for CIs (cmdb_ci_dns_name)
- Windows Clusters (cmdb_ci_win_cluster, cmdb_ci_win_cluster_node, cmdb_ci_win_cluster_resource)
- Tracked Configuration Files (cmdb_ci_config_file_tracked)
The following application CIs can also be discovered:
- MSSQL DB on Windows (cmdb_ci_db_mssql_instance)
- MySQL DB on Windows (cmdb_ci_db_mysql_instance)
- Oracle DB on Windows (cmdb_ci_db_ora_instance)
- WebSphere on Windows (cmdb_ci_app_server_websphere)
The following probes and patterns are used for Discovery with the sample profile:
- Windows - Classify (probe)
- Windows OS - Servers (pattern)
- Windows OS - Desktops (pattern)
- Windows - Installed Software (probe)
- Windows - ADM (multiprobe)
- MySQL server On Windows (pattern)
- MS SQL DB On Windows (pattern)
- Oracle DB on Windows (pattern)
- Windows - WebSphere - Cell (probe)
- Windows - WebSphere - Web Applications (probe)
- Windows - WebSphere - Web Services (probe)
Prepare the instance for Discovery with JEA
To configure the ServiceNow® instance for Discovery with Microsoft Just Enough Administration (JEA), define the Windows credential with the domain name and set the MID Server configuration parameters appropriately.
Vorbereitungen
Prozedur
- Navigate to and click New.
- Select Windows Credentials from the list of available credential types.
- Create the credentials for the non-administrator, using this format for the User name: domain\user name.
- Submit the record.
- Navigate to .
- Select a MID Server to configure from the list of MID Servers.
- Select the Configuration Parameters related list.
-
Set the following MID Server config parameters as indicated:
- Wahlweise:
Use the following MID Server
property and System
property to troubleshoot issues: