Socket
Socket
Sign inDemoInstall

trend_app_protect

Package Overview
Dependencies
21
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    trend_app_protect

Trend Micro Cloud One - Application Security provides real-time application security as a service for modern applications, APIs, serverless and other computing platforms


Version published
Weekly downloads
37
decreased by-43.08%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Trend Micro Cloud One Application Security for Node

What is it?

Trend Micro Cloud One - Application Security provides real-time application security as a service for modern applications, APIs, serverless and other computing platforms. When Application Security is deployed, threats to your web applications will be detected and protected against, minimizing your risk.

Features

Application Security detects and protects against a wide range of attacks at runtime within your entire application, including: SQL injections Remote command execution Illegal file access Malicious file uploads Malicious payloads URL redirects And more

Support

The agent currently supports the following:
  • Ubuntu, Debian, RedHat, CentOS or Alpine on x86 64 bits architecture
  • Node 10, 12, 14
  • ECMA 5 & 6
Some features require specific components to work:
FeatureRequired Component
SQLibody-parser ^1.19 or busboy ^0.2.14 and one of the following:
  • pg 7 or 8
  • pg-native 3
  • mysql 2+
  • sqlite3 3, 4 and 5
Open Redirect
  • Express 3 and 4
Malicious Payloadbody-parser1 ^1.19 or busboy ^ 0.2.14

Installation

From the root of your Node app:

$ npm install --save trend_app_protect

Usage

To activate Application Security, add the following as the first line of your app setup code:

require('trend_app_protect');

//import support added in version 4.5.0 and above for projects that require/support es6 modules
import 'trend_app_protect';

The choice of statements to use between require or import are dependant on the the application itself, the modules used and declarations in the package files. It's independant of Application Security.

Generally, require must be used. When the server setup is done within an ES module, import can be used. If the {type: module} flag is set in the package.json, import must be used.

Please refer to the official NodeJS documentation for more details. Some references and examples on when to use require versus import:

Configuration

The agent key and secret can be configured via the TREND_AP_KEY and TREND_AP_SECRET environment variables.

If you are using a configuration file instead of using environment variables, it needs to be called trend_app_protect.json, be in the application root folder, and needs to contain at least the following:

{
  "key": "my-key",
  "secret": "my-secret"
}

Notes

  • Environment variables will take precedence over the configuration file
  • Mutli-threaded agents is not supported. Any attempt to require or import the agent in a worker will fail and break the main event loop agent.

More information

https://cloudone.trendmicro.com/docs/application-security/

Keywords

FAQs

Last updated on 21 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc