Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSSymantecSES

PowerShell Gallery Version PowerShell Gallery Downloads License

A PowerShell module that provides an API wrapper for Symantec Endpoint Security (SES) management. This module enables administrators to interact with SES through PowerShell, supporting device management, policy administration, and threat intelligence operations across multiple tenant regions.

Overview

PSSymantecSES offers comprehensive functionality for managing Symantec Endpoint Security environments:

  • Device Management: Query, scan, and manage endpoint devices
  • Policy Administration: Retrieve and manage security policies
  • Threat Intelligence: Access threat data, file insights, and protection information
  • Multi-Region Support: Connect to Americas, Europe, and India tenant regions
  • Cross-Platform: Compatible with Windows PowerShell 5.1 and PowerShell 7.x on Windows and Linux
  • Secure Authentication: Uses encrypted credential storage with regional support

Installation

Install from PowerShell Gallery (Recommended)

# Install for current user
Install-Module -Name PSSymantecSES -Scope CurrentUser

# Install system-wide (requires administrator privileges)
Install-Module -Name PSSymantecSES -Scope AllUsers

Build from Source

If you prefer to build the module from source or contribute to development:

# Clone the repository
git clone https://github.com/Douda/PSSymantecSES.git
cd PSSymantecSES

# Install build dependencies
./build.ps1 -ResolveDependency

# Build the module
./build.ps1

# Run tests
./build.ps1 -Tasks test

Quick Start

Authentication

Connect to your SES tenant using client credentials:

# Connect using client ID and secret
Get-SESToken -ClientID "your-client-id" -SecretID "your-secret-key"

# Or check for stored credentials and select tenant
Get-SESToken

Basic Usage Examples

Device Management

# Get all devices (with automatic pagination)
Get-SESDevice

# Get specific device by computer name
Get-SESDevice -ComputerName "DESKTOP-ABC123"

# Get multiple devices
Get-SESDevice -ComputerName "DESKTOP-ABC123", "LAPTOP-DEF456"

# Get device by ID
Get-SESDevice -DeviceId "12345678-1234-1234-1234-123456789abc"

# Start a full scan on a device
Start-SESFullScan -ComputerName "DESKTOP-ABC123"

# Update definitions on a device
Start-SESDefinitionUpdate -ComputerName "DESKTOP-ABC123"

Policy Management

# Get all policies
Get-SESPolicy

# Get specific policy details
Get-SESPolicyDetails -PolicyId "policy-12345"

# Get policies summary
Get-SESPoliciesSummary

# Get device groups
Get-SESDeviceGroup

Threat Intelligence

# Get file insights
Get-SESThreatIntelFileInsight -FileHash "sha256-hash-here"

# Get file protection information
Get-SESThreatIntelFileProtection -FileHash "sha256-hash-here"

# Get CVE protection details
Get-SESThreatIntelCveProtection -CveId "CVE-2021-1234"

# Get network insights
Get-SESThreatIntelNetworkInsight -IpAddress "192.168.1.100"

Available Commands

To see all available commands in the module:

Get-Command -Module PSSymantecSES

For detailed help on any command:

Get-Help Get-SESDevice -Full
Get-Help Connect-SESService -Examples

Command Categories

  • Authentication: Connect-SESService, Disconnect-SESService, Get-SESToken, Test-SESConnection
  • Device Management: Get-SESDevice, Get-SESDeviceDetails, Start-SESFullScan, Start-SESQuickScan
  • Policy Management: Get-SESPolicy, Get-SESPolicyDetails, Get-SESGroup
  • Threat Intelligence: Get-SESThreatIntelFileInsight, Get-SESThreatIntelFileProtection, Get-SESThreatIntelCveProtection
  • System Operations: Get-SESIncidents, Get-SESEvents, Block-SESFile

Authentication & Configuration

The module supports secure credential storage using PowerShell's CliXml encryption. Credentials are stored per-user and support multiple tenant regions:

  • Americas: Tenants with .us. in the URL
  • Europe: Tenants with .eu. in the URL
  • India: Tenants with .in. in the URL
# First-time setup - credentials will be securely stored
Get-SESToken -ClientID "your-client-id" -SecretID "your-secret-key"

# Subsequent connections can use stored credentials
Get-SESToken

# Test your connection
Test-SESConnection

# Clear stored authentication
Clear-SESAuthentication

Requirements

  • Windows PowerShell 5.1 or PowerShell 7.x (Windows/Linux)
  • Internet connectivity to reach SES API endpoints
  • Valid SES API credentials (Client ID and Secret)

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Changelog

See CHANGELOG.md for a detailed history of changes.

Support

About

PowerShell module for Symantec Endpoint Security (SES) API - Cross-platform wrapper with comprehensive device, policy, and threat intelligence management

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages