tis-withsecure-agent-desktop icon

WithSecure Elements Agent

Silent install package for WithSecure Elements Agent

12.0.78-1
System
Security
System
Security

  • package: tis-withsecure-agent-desktop
  • name: WithSecure Elements Agent
  • version: 12.0.78-1
  • categories: System,Security
  • maintainer: WAPT Team,Tranquil IT,Flavien SCHELFAUT
  • editor: WithSecure Corporation
  • licence: proprietary
  • locale: all
  • target_os: debian_based
  • architecture: arm64
  • signature_date:
  • size: 2.84 Mo
  • homepage : https://www.withsecure.com/

package           : tis-withsecure-agent-desktop
version           : 12.0.78-1
architecture      : arm64
section           : base
priority          : optional
name              : WithSecure Elements Agent
categories        : System,Security
maintainer        : WAPT Team,Tranquil IT,Flavien SCHELFAUT
description       : WithSecure Elements Agent is the endpoint protection agent of the WithSecure Elements platform, providing real-time protection against malware, viruses and ransomware, managed centrally from the Elements Security Center
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian_based
min_wapt_version  : 2.4
sources           : https://www.withsecure.com/en/support/download
installed_size    : 
impacted_process  : 
description_fr    : WithSecure Elements Agent est l'agent de protection des postes de travail de la plateforme WithSecure Elements, offrant une protection en temps réel contre les logiciels malveillants, les virus et les ransomwares, administré de manière centralisée depuis l'Elements Security Center
description_pl    : WithSecure Elements Agent to agent ochrony stacji roboczych platformy WithSecure Elements, zapewniający ochronę w czasie rzeczywistym przed złośliwym oprogramowaniem, wirusami i ransomware, zarządzany centralnie z poziomu Elements Security Center
description_de    : WithSecure Elements Agent ist der Endpoint-Schutzagent der WithSecure Elements-Plattform, der Echtzeitschutz vor Malware, Viren und Ransomware bietet und zentral über das Elements Security Center verwaltet wird
description_es    : WithSecure Elements Agent es el agente de protección de endpoints de la plataforma WithSecure Elements, que ofrece protección en tiempo real contra malware, virus y ransomware, administrado de forma centralizada desde Elements Security Center
description_pt    : O WithSecure Elements Agent é o agente de proteção de endpoints da plataforma WithSecure Elements, que oferece proteção em tempo real contra malware, vírus e ransomware, gerido de forma centralizada a partir do Elements Security Center
description_it    : WithSecure Elements Agent è l'agente di protezione degli endpoint della piattaforma WithSecure Elements, che offre protezione in tempo reale contro malware, virus e ransomware, gestito in modo centralizzato dall'Elements Security Center
description_nl    : WithSecure Elements Agent is de endpointbeveiligingsagent van het WithSecure Elements-platform, die realtime bescherming biedt tegen malware, virussen en ransomware en centraal wordt beheerd vanuit het Elements Security Center
description_ru    : WithSecure Elements Agent — агент защиты конечных точек платформы WithSecure Elements, обеспечивающий защиту в реальном времени от вредоносных программ, вирусов и программ-вымогателей с централизованным управлением из Elements Security Center
audit_schedule    : 
editor            : WithSecure Corporation
keywords          : withsecure,elements,antivirus,endpoint,security,edr,f-secure
licence           : proprietary
homepage          : https://www.withsecure.com/
package_uuid      : 225ad513-93a3-4a43-8838-41e47a72e1bf
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 94579e3e3924e8bfd44e562bcf9406aff640e418f196ce0a209439eab74fbe1a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-10-13T10:32:10.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : dcTyTOqzh3VlSAm+clY2t+6P8DzhJ4apozNFJnIZi3NA7pb2EOD975lNSNnQLJJ44aQq09QrUjxRPs2nmIqBOgKGmRj04MejrwhxXEGUcGVZcDXPJdj7uwGB9IoktWxG8/eqKEnF4JHIVm50QmIcCiCaCxliKruc6JbAftovp83jz3li8QlRE5FdycbjizEafYfs4NCY4Nu1S/hr2jLr1bKMtgf+dV6yZ46P/Sid9DQlL2Xh/veUymAzouTSi/sKc9aIosip8HGWv2y+yhIjKIYh5WAZxI2AvRPkHgxKL9P+sJnnRF0UZdeAkJoLhc7gNcUUBrMwpMcU1RnfaDheFg==

# -*- coding: utf-8 -*-
from setuphelpers import *

package_name = "linuxsecurity-installer"


def install():
    bin_name = glob.glob("linuxsecurity-installer_arm64.deb")[0]

    print(f"Installing: {bin_name}")
    install_deb(bin_name)

    # The installer only bootstraps the product: it is downloaded and installed by the activation
    subscription_key = ""
    if subscription_key:
        run(f"/opt/f-secure/linuxsecurity/bin/activate --psb --subscription-key {subscription_key}")


def uninstall():
    print(f"Uninstalling: {package_name}")
    uninstall_apt(package_name)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import io
import tarfile


def update_package():
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    # All downloads available here: https://support.withsecure.com/en/download/
    base_url = "https://download.withsecure.com/PSB/latest/"
    update_dict = {
        "debian_based-x64": "linuxsecurity-installer_amd64.deb",
        "debian_based-arm64": "linuxsecurity-installer_arm64.deb",
    }
    os_type = control.target_os.split("(")[0] + "-" + ensure_list(control.architecture)[0]
    latest_bin = update_dict[os_type]
    latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
    download_url = base_url + latest_bin
    print(f"Download URL is: {download_url}")

    if isfile(latest_bin):
        remove_file(latest_bin)
    print(f"Downloading: {latest_bin}")
    wget(download_url, latest_bin, proxies=proxies)
    print(f"Binary is present: {latest_bin}")

    # The download URL is not versioned, so the version is read from the installer itself
    version = get_deb_version(latest_bin)
    print(f"Latest {app_name} version is: {version}")

    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f"*.{latest_bin_extension}"):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated


def get_deb_version(deb_file):
    with open(deb_file, "rb") as f:
        data = f.read()
    header = data.index(b"control.tar")
    size = int(data[header + 48:header + 58])
    with tarfile.open(fileobj=io.BytesIO(data[header + 60:header + 60 + size])) as control_tar:
        deb_control = control_tar.extractfile("./control").read().decode()
    return deb_control.split("\nVersion: ")[1].splitlines()[0].split("-")[0]

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a5ff9d5cd814e5f897a570ef8503a8c2519e20f771ca835777095992a214e7bd : WAPT/control
94579e3e3924e8bfd44e562bcf9406aff640e418f196ce0a209439eab74fbe1a : WAPT/icon.png
82b80ac8bb359e025627f7ef6ebf38e1b43bf84a55930c46d2de2a9baf82948d : linuxsecurity-installer_arm64.deb
a851ebe5e963f5c559d770781851dddfd983d7fb9f44abbdb7ec6cba8afb2be8 : luti.json
8a7719f1a15f5bb032521f09280f16d8107686a0c9dc7d75d5b1b2d44f3323c7 : setup.py
a3c11b093ba6e73c38cde4e44c77088db19de38fc1371a27d19b5afd0b0b6aaf : update_package.py