Habr•July 24, 2026•🇷🇺Translated from Russian

Corporate Nextcloud Security Gaps: Default Settings, Antivirus Failures and Open Source Integration Challenges

Nextcloud in corporate environments demands far more than default open source settings to achieve acceptable security levels, according to a detailed technical review published by K2Tech.

The company’s specialist Roma Masyagutov explains that while LDAP integration, antivirus plugins, audit logging and access policies exist, real-world testing often exposes dangerous gaps. A large infected file can still reach storage even when an antivirus solution is supposedly active.

Architecture and Perimeter Defenses

Corporate Nextcloud runs across load balancers, application servers, a MariaDB Galera cluster for metadata, Redis for sessions, S3 object storage and Elasticsearch for logs, all spread across three availability zones. WAF solutions from vendors such as Wallarm and Qrator plus Anti-DDoS services sit in front of the infrastructure. Additional layers include vulnerability scanning with VULS, infrastructure-level SRK, security groups, IAM and CloudTrail logging.

LDAP and Antivirus Integration Issues

Native LDAP plugins connect reliably to corporate Active Directory, automatically mapping groups and permissions. Antivirus integration, however, proves far more fragile. When the antivirus service becomes unreachable, the Antivirus for files plugin simply uploads the file to S3 without scanning. A later parameter avBlockUnreachable was added, yet it functions only with ClamAV and still requires manual configuration for other engines.

Another critical flaw appears during chunked uploads. Files are transferred in 5–10 MB pieces and reassembled with a MOVE command. Older plugin versions checked only individual PUT requests, leaving the final assembled file unexamined. Administrators must update the plugin and align chunk sizes with the antivirus stream length using commands such as occ config:app:set files max_chunk_size --value="104857600".

Comparing Three Antivirus Engines

Three ICAP-based engines were evaluated on identical hardware: ClamAV, Kaspersky Scan Engine and PT Sandbox.

  • ClamAV offers open source signature-based detection but lacks built-in clustering, web panels and monitoring; administrators must build these capabilities themselves.
  • Kaspersky Scan Engine provides a web console, native clustering via shared database and integration with SIEM systems, delivering the fastest inline scanning speeds in tests.
  • PT Sandbox combines signature detection with behavioral analysis yet proved the most resource-intensive, with load averages reaching 115 during sequential uploads.

Throughput measurements for 30 MB and 100 MB files containing EICAR signatures showed Kaspersky Scan Engine consistently outperforming the others, while PT Sandbox imposed the highest CPU overhead even without behavioral analysis enabled.

The authors conclude that antivirus scanning in a Nextcloud pipeline must be treated as a dedicated service whose failure modes, monitoring, high-availability design and re-scan policies require careful engineering. Frequent Nextcloud releases and plugin updates further necessitate ongoing regression testing on staging environments before production rollout.

Related articles

Habr•Supply Chain & Open Source

SAP Investigates GitHub Breach After Attackers Steal Employee Tokens to Modify Source Code

SAP has confirmed an ongoing investigation into a security incident in which attackers obtained employee authentication tokens and used them to access, copy, and modify source code on the company's GitHub infrastructure. The company stated that there is currently no evidence of unauthorized access to customer data. German outlet Der Spiegel reported that the incident was internally codenamed Project Granite, with employees instructed to maintain confidentiality. Attackers are believed to have leveraged AI-based tools during the operation, though SAP has not officially confirmed this detail. As a precaution, SAP restricted GitHub access, halted automated development processes, and replaced digital signing keys. The incident follows a separate compromise of official SAP npm packages earlier this year that targeted developer credentials.

AntiMalware•Supply Chain & Open Source

Pre-installed Android Malware Surges as Triada and Keenadu Trojans Infect Devices Through Supply Chain

The number of Android devices carrying pre-installed malware has more than doubled over the past year, with compromised firmware reaching consumers directly from manufacturers. According to Kaspersky Lab research covering the first ten months of 2026, 88 percent of detected cases involved the Triada and Keenadu trojan families, with Keenadu alone appearing on over 220,000 devices. Infections occur at multiple points in the production pipeline, including deliberate insertion by makers of low-cost and counterfeit hardware, compromised firmware builds supplied by contractors, and tainted open-source components. Triada operates with system-level privileges to inject malicious modules into application memory, intercept SMS and calls, and steal credentials, while Keenadu employs a delayed-activation mechanism that can remain dormant for roughly 2.5 months after initial contact with its command server. Similar threats have been identified beyond smartphones, including Dwphon on children's smartwatches and Vo1d on television set-top boxes. Kaspersky Lab's Denis Parinov warned that such devices can serve as entry points into corporate networks, sources of data leaks, and participants in DDoS attacks, recommending firmware verification and Zero Trust policies for mobile infrastructure.

Habr•Supply Chain & Open Source

Securing Secrets in GitLab CI/CD Against Merge Request Leaks and Unsafe Pipelines

The article explains how GitLab CI/CD pipelines run with elevated privileges and can leak secrets through misconfigured variables or overly permissive CI_JOB_TOKEN settings. It stresses that masked variables only hide values in logs while protected variables restrict access to protected branches and tags. Best practices include using protected and masked variables with environment scope, limiting CI_JOB_TOKEN to specific projects, and adopting external secret managers such as HashiCorp Vault with JWT authentication. The guide also covers OIDC federation for passwordless cloud access using Yandex Cloud as an example and recommends pinning images by digest and using ephemeral runners. Additional advice covers protecting pipeline configuration files and avoiding privileged runners for untrusted code.

安全客•Supply Chain & Open Source

Barracuda Cloud Breach: Unrevoked Key to Third-Party AI Provider Allowed AI Agent Deployment

Barracuda suffered a cloud intrusion after an access key issued to a third-party AI service provider was never revoked following the end of their collaboration. Attackers used the valid credential to access multiple cloud environments, including those managing the company's XDR security products. They then deployed the ARTEX AI penetration testing framework, which autonomously enumerated permissions, moved laterally, and searched for cryptocurrency wallet data such as mnemonic phrases and private keys stored in Kubernetes Secrets and environment variables. The incident remained undetected by internal monitoring for nearly two days until the AI provider and an engineer reported anomalies. Barracuda has since advised affected customers to reissue credentials, highlighting persistent risks in third-party access management and long-lived cloud keys. The case underscores how AI tools can accelerate post-compromise execution while the root cause remains classic credential hygiene failures.