Security

A platform designed to be hard to misuse.

How we control who can get in, what they can do, how the application defends itself, and how we make sure problems are visible.

Who can get in

Sign-in is strong by default and gets stronger with your identity provider.

Sign-in

  • Short-lived signed session tokens (60 minutes by default)
  • Passwords hashed with bcrypt
  • Disabling a company, user or API key takes effect on the very next request

Single sign-on

  • OpenID Connect with PKCE: Microsoft Entra ID, Google Workspace, Okta or any OIDC provider
  • Match users by email domain, with optional auto-provisioning and a default role
  • Optional "SSO required", while admins keep a password fallback

API access

  • Per-company API keys, stored only as hashes
  • Authentication is checked before an upload is read or parsed
  • Keys can be revoked instantly

What they can do

Access follows the person's role, and every record belongs to one company.

Role-based access

  • Superadmin, company admin, user and API-key roles, plus custom roles per company
  • 15 permissions covering viewing, managing, importing, AI review, negotiation, signature, templates, settings, intake, reports, audit, integrations and roles
  • Switched-off modules are hidden in the interface and return 403 from the API

Workflow controls

  • Only the owner, company admins or the company's API keys can change a contract, and only while it is a draft or sent back
  • Only the assigned approver can decide an approval step
  • The owner and submitter never approve their own contract

How the application defends itself

The document engines handle untrusted templates and files, so they are built to contain them.

Sandboxed templates

  • Templates run in a sandbox with no access to Python internals
  • Loops, repetition and powers are capped so a template cannot build huge strings or numbers
  • Excel values starting with = are written as text, so data cannot inject formulas

No outbound fetching

  • HTML rendering cannot fetch URLs or local files, only embedded images, which prevents server-side request forgery
  • Uploads are held in memory, with limits on size, image count and output rows

Safe exports

  • CSV exports neutralise values that start with =, +, - or @, so spreadsheet apps do not run them
  • Unexpected errors return a generic message and log only the error type, never customer data

Protection against abuse

Limits keep one tenant or one bad actor from affecting everyone else.

Daily limits per company

  • API calls and documents per day are capped by plan
  • Over the limit, the API answers 429 with a Retry-After header
  • Failed generations give their slot back

Request limits

  • Oversized requests are rejected before the body is read
  • Separate caps on template, data and image sizes and on Excel row expansion

Signing safeguards

  • One-time codes are rate-limited, expire after 10 minutes and allow 5 attempts
  • Signing links are 256-bit random tokens that expire

Secure by default

The safe setting is the default one.

Production safeguards

  • In production mode the server refuses to start with a weak secret or the demo password
  • Demo data and demo logins are never created in production

Contained runtime

  • The backend container runs read-only with an in-memory temporary folder
  • Only the database is persisted

Visibility and assurance

When something happens, there is a record.

Logging and audit

  • No customer data, images or outputs are logged
  • Sign-ins, failed sign-ins, role and key changes, integration changes and billing events go to the audit trail
  • Signing tokens and webhook secrets are redacted from logs

Testing

  • An automated test suite covers the document engines, merging, the API, company separation, limits, tracking and the contract workflow
  • Third-party signing connectors are tested against simulated responses and should be validated with your own sandbox account before go-live
This website. neosmartcontracts.com is served over HTTPS as a static site with no database, and sends security headers that stop it being framed by other sites (X-Frame-Options: DENY), block content-type sniffing and limit browser permissions such as camera, microphone and location.

Questions from your security or legal team?

We're happy to walk them through how NeoSmartContracts protects your contracts.

Talk to usSubscribe