Skip to main content

What is SafeSquid?

SafeSquid is a multi-threaded, SMP-aware HTTP/1.1 application proxy daemon built for Zero-Trust web-security enforcement. Every HTTP exchange routed through SafeSquid crosses an inline Layer-7 policy boundary. The proxy accepts downstream connections, parses requests, establishes identity and application context, evaluates access and security policy, manages upstream connections, processes origin responses, and records enforcement decisions. HTTPS follows the same control path. Policy can permit CONNECT tunnelling or invoke TLS interception. Interception terminates downstream TLS, validates and establishes independent upstream TLS, then submits decrypted HTTP to the normal request-processing pipeline. SafeSquid therefore controls web activity after network connectivity succeeds.

Why SafeSquid exists

Enterprise activity now concentrates in browsers, SaaS platforms, cloud services, and HTTP APIs. Credentials, files, session tokens, business records, application commands, and administrative operations routinely traverse HTTPS. Phishing, malware delivery, credential abuse, command-and-control traffic, application misuse, and data exfiltration exploit the same permitted channels. Network firewalls authorize connections. URL filters classify destinations. Endpoint controls enforce host-local policy. TLS protects transport confidentiality. Authentication establishes identity. None of those controls, independently, determines whether a specific HTTP request, upload, download, API call, or application action satisfies security policy. The resulting gap appears inside already permitted traffic. A trusted SaaS service can receive prohibited data. An authenticated account can perform prohibited operations. A valid TLS session can carry malware. A newly registered destination can evade reputation-based filtering. SafeSquid places enforcement inside the HTTP processing path.

From connection to decision

Processing starts at a configured listener. Access Restrictions controls permission to use the proxy and can apply network-based access rules or authentication. Supported identity sources include local credentials, PAM, LDAP directories, Active Directory, and Kerberos. Explicit HTTPS proxying begins with CONNECT. Policy can allow tunnelling or invoke HTTPS Inspection. Transparent HTTPS reaches an SSL_TRANSPARENT listener without an explicit proxy request. TLS interception creates separate downstream and upstream TLS sessions and exposes decrypted HTTP to Layer-7 processing. HTTP parsing exposes method, request target, headers, cookies, content metadata, and application characteristics. Content processing can identify true MIME type, decode supported transfer representations, inspect compressed payloads and archives, analyse text and images, scan malware, and examine uploaded or downloaded data. Additional context can include user identity, group membership, source network, destination classification, application signatures, DNS intelligence, TLS certificate state, content signatures, malware results, session state, cross-site activity, transfer properties, and behavioural indicators. The Polymath Profiling Engine correlates applicable context before enforcement. Policy can authenticate, permit, deny, redirect, rate-limit, control cookies, modify headers, rewrite payloads, scan malware, restrict uploads or downloads, enforce data-loss controls, sanitize content, or invoke external ICAP services. Origin responses cross response-side parsing, profiling, inspection, and enforcement before downstream delivery. The resulting decision reflects the application exchange, not destination reputation alone.

What SafeSquid can enforce

SafeSquid combines multiple security functions inside one HTTP policy boundary: Shared transaction context allows multiple controls to evaluate the same request or response without reducing enforcement to isolated network decisions.

Zero Trust at Layer 7

Network reachability establishes connectivity, not application authorization. Authentication establishes identity, not unrestricted access. TLS establishes cryptographic protection, not acceptable application behaviour. SafeSquid evaluates available identity, destination, application, protocol, content, and security context before permitting protected web activity. A single SaaS destination can therefore receive different treatment for different users, operations, payloads, or session conditions. An approved user can access one application function while policy blocks another. An approved destination can receive ordinary business data while DLP blocks sensitive content. SafeSquid converts network reachability into transaction-level authorization.

Built as a security proxy

SafeSquid integrates inspection, correlation, enforcement, and logging inside a multi-threaded proxy process. SMP-aware execution distributes concurrent processing across available CPU cores. Shared-memory structures expose common context to active security processors. In-memory DNS caching, upstream connection reuse, TLS session reuse, configurable object caching, streaming controls, and multi-queue NIC support reduce avoidable proxy-path overhead. Standard x86_64 Linux infrastructure supports bare-metal, virtual-machine, cloud, and clustered deployments. Deployment modes include explicit forward proxy, transparent interception, reverse proxy, proxy chaining, and selected TCP-proxy configurations. LDAP, Active Directory, PAM, Kerberos, ICAP, SNMP, WCCP, REST-based management, external parsers, SIEM pipelines, and open-format logs support integration with existing infrastructure. Cluster deployments support active-active or active-standby operation with synchronization of supported policy, categorization, and certificate state.

Standards and interoperability

SafeSquid implements HTTP/1.1 in conformance with RFC 2616 and successor HTTP specifications while preserving RFC 2616 backward compatibility. Supported protocol and integration capabilities include HTTP/HTTPS proxying, CONNECT, WebSocket traffic, IPv6 clients, active and passive FTP over HTTP/HTTPS, SNMP, ICAP, WCCP, LDAP, Kerberos, PAM, and configurable TLS handling.

Enforcement remains observable

Inline control requires explainable decisions. SafeSquid records web activity, authentication events, filtering results, bypasses, security processing, DNS activity, connection failures, integration state, resource utilization, and proxy performance. Detailed Logs expose request processing, matched filters, and enforcement reasons. Process logs expose daemon activity, module operation, security updates, external integrations, cluster synchronization, and diagnostic failures. Open log formats support direct inspection with standard Linux tools and ingestion by monitoring, analytics, SIEM, and forensic systems. Configuration changes can therefore be validated against observed traffic and recorded enforcement results.

Start with one controlled request

Prove the complete control path before enabling advanced security functions.
  1. Start the SafeSquid daemon and verify the required listener.
  2. Restrict proxy access to one controlled client or network.
  3. Configure the client to route web traffic through SafeSquid.
  4. Send one HTTP request.
  5. Verify processing in Detailed Logs.
  6. Add one explicit access rule.
  7. Repeat the request.
  8. Verify the matched filter and enforcement reason.
A successful test confirms traffic insertion, HTTP processing, policy enforcement, and decision visibility. Continue with First Configuration.