Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

variamos-security

Latest version: v0.0.3

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: CrazzyBuilds, variamosadmin
0 Stars
1 Forks
1 Versions
540 Downloads
TypeScript Repo language

Scan summary

variamos-security was last scanned on 23 Nov 2026 at version 0.0.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 23 Nov 2026.
  • Findings: No rules fired in version 0.0.3.
  • Downloads: 540 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.3 LATEST 23 Nov 2026 No rules fired

No rules fired in 0.0.3

Findings

Findings for v0.0.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

VariaMos Security Library

This library provides security functionalities for the VariaMos platform, including JWT creation, session validation, role and permission checks, and exception handling.

Installation

Install it from PyPI, with the FastAPI helpers (is_authenticated, has_roles, has_permissions):

pip install "variamos-security[fastapi]"

Session tokens signed by variamos_ms_admin (0.0.3)

variamos_ms_admin signs the session tokens with the Node library of this repository (@variamosple/variamos-security). Since its 0.0.17, a token carries:

  • an issuer, iss: variamos_ms_admin;
  • an audience, aud, that is a list: ["variamos-platform", host].

Version 0.0.2 of this package read aud as a string only: such a token failed its validation and every authenticated request answered 500. Version 0.0.3 reads aud as a string or a list and keeps iss (SessionInfo.iss, SessionInfo.aud). It checks neither of them yet, as the Node verifier in its default warn mode does not refuse them.

Configuration

  1. Create Public and Private Keys for Session Management:

    • Generate a private key:
      openssl genpkey -algorithm RSA -out jwtRS256.key -pkeyopt rsa_keygen_bits:4096
    • Generate a public key:
      openssl rsa -in jwtRS256.key -pubout -out jwtRS256.key.pub
  2. Set Environment Variables:

    • Set the VARIAMOS_PRIVATE_KEY_PATH in your environment:
      VARIAMOS_PRIVATE_KEY_PATH=./jwtRS256.key
    • Set the VARIAMOS_PUBLIC_KEY_PATH in your environment:
      VARIAMOS_PUBLIC_KEY_PATH=./jwtRS256.key.pub
    • Set the VARIAMOS_JWT_EXP_IN_SECONDS in your environment (optional, default is 900 seconds):
      VARIAMOS_JWT_EXP_IN_SECONDS=900

Usage

Functions
create_jwt
  • Function: create_jwt(user: SessionUser, aud: str = None) -> str
  • Description: Creates a JWT for the given user.
  • Parameters:
    • user (SessionUser): The user for whom the JWT is created.
    • aud (str, optional): The audience for the JWT.
  • Returns: The generated JWT as a string.
is_authenticated
  • Function: is_authenticated(request: Request) -> SessionUser
  • Description: Validates the session and returns the authenticated user.
  • Parameters:
    • request (Request): The incoming request.
  • Returns: The authenticated user as a SessionUser.
has_roles
  • Function: has_roles(roles: List[str] = [])
  • Description: Middleware to check if the user has the required roles.
  • Parameters:
    • roles (List[str]): The list of roles to check.
  • Returns: The authenticated user as a SessionUser.
has_permissions
  • Function: has_permissions(permissions: List[str] = [], roles: List[str] = [])
  • Description: Middleware to check if the user has the required permissions and roles.
  • Parameters:
    • permissions (List[str]): The list of permissions to check.
    • roles (List[str]): The list of roles to check.
  • Returns: The authenticated user as a SessionUser.
Exception Handling
variamos_security_exception
  • Class: VariamosSecurityException

  • Description: Custom exception class for security-related errors.

  • Parameters:

    • status_code (int): The HTTP status code.
    • detail (ResponseModel): The response model containing error details.
    • headers (dict, optional): Additional headers.
  • Function: variamos_security_exception_handler(request: Request, exc: VariamosSecurityException)

  • Description: Exception handler for VariamosSecurityException.

  • Parameters:

    • request (Request): The incoming request.
    • exc (VariamosSecurityException): The raised exception.
  • Returns: A JSON response with the error details.

Configuration
security_config
  • Function: load_keys()
  • Description: Loads the private and public keys from the environment.
  • Function: get_private_key()
  • Description: Returns the private key.
  • Function: get_public_key()
  • Description: Returns the public key.

Models

session_info
  • Class: SessionInfo
  • Description: Model representing session information.
session_user
  • Class: SessionUser
  • Description: Model representing a session user.
response_model
  • Class: ResponseModel
  • Description: Model representing a response with data or error information.

Development

The source of this package lives in the python/ folder of variamos_security, next to the Node library. Its tests check, among other things, that a token signed by the Node library is accepted here. With Python 3.9 or later, and Node 26 for that check:

npm ci && npm run build
cd python
python -m venv .venv && . .venv/bin/activate
pip install --require-hashes --only-binary :all: -r requirements-test.txt
python -m pytest

The test and build dependencies are listed in requirements-test.in and requirements-build.in, and locked with their hashes in the matching .txt files. After a change to a .in file, compile it again with the command written at its top.

Without Node or without npm run build, the tests of Node tokens are skipped; the CI runs them.

Release

A release is published to PyPI by GitHub Actions (trusted publishing, no token):

  1. Raise version in setup.py in a pull request, and merge it.
  2. Push the tag python-vX.Y.Z on that commit of main: the workflow publish-python.yml checks that the tag matches the version, runs the tests, builds the package and waits for an approval in the pypi environment.
  3. Once approved, the version is on PyPI.

License

This project is licensed under the MIT License.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases variamos-security

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229