securenative-java-agent

SecureNative Java Agent

License

License

Categories

Categories

Java Languages Native Development Tools
GroupId

GroupId

com.securenative.java
ArtifactId

ArtifactId

securenative-java-agent
Last Version

Last Version

1.4.5
Release Date

Release Date

Type

Type

jar
Description

Description

securenative-java-agent
SecureNative Java Agent
Project URL

Project URL

https://github.com/securenative/securenative-java-agent
Source Code Management

Source Code Management

http://github.com/securenative/securenative-java-agent/tree/master

Download securenative-java-agent

How to add to project

<!-- https://jarcasting.com/artifacts/com.securenative.java/securenative-java-agent/ -->
<dependency>
    <groupId>com.securenative.java</groupId>
    <artifactId>securenative-java-agent</artifactId>
    <version>1.4.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.securenative.java/securenative-java-agent/
implementation 'com.securenative.java:securenative-java-agent:1.4.5'
// https://jarcasting.com/artifacts/com.securenative.java/securenative-java-agent/
implementation ("com.securenative.java:securenative-java-agent:1.4.5")
'com.securenative.java:securenative-java-agent:jar:1.4.5'
<dependency org="com.securenative.java" name="securenative-java-agent" rev="1.4.5">
  <artifact name="securenative-java-agent" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.securenative.java', module='securenative-java-agent', version='1.4.5')
)
libraryDependencies += "com.securenative.java" % "securenative-java-agent" % "1.4.5"
[com.securenative.java/securenative-java-agent "1.4.5"]

Dependencies

compile (14)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 4.0.1
javax.validation : validation-api jar 2.0.0.Final
org.json : json jar 20190722
org.apache.maven : maven-model jar 3.6.3
com.squareup.okhttp3 : okhttp jar 4.0.0
commons-codec : commons-codec jar 1.11
com.fasterxml.jackson.module : jackson-module-scala_2.11 jar 2.11.0
com.fasterxml.jackson.core : jackson-databind jar 2.11.0
com.fasterxml.jackson.core : jackson-core jar 2.11.0
com.fasterxml.jackson.core : jackson-annotations jar 2.11.0
com.fasterxml.jackson.module : jackson-module-kotlin jar 2.11.0
com.google.guava : guava jar 29.0-jre
org.springframework.security : spring-security-web jar 5.3.1.RELEASE
net.jodah : failsafe jar 2.3.5

test (8)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.7.0-M1
org.junit.jupiter : junit-jupiter-api jar 5.7.0-M1
org.junit-pioneer : junit-pioneer jar 0.5.1
com.squareup.okhttp3 : mockwebserver jar 4.0.0
org.assertj : assertj-core jar 3.15.0
org.skyscreamer : jsonassert jar 1.5.0
org.springframework : spring-test jar 5.2.6.RELEASE
org.mockito : mockito-core jar 3.3.3

Project Modules

There are no modules declared in this project.

SecureNative Logo

A Cloud-Native Security Monitoring and Protection for Modern Applications

Github Actions npm version

Documentation | Quick Start | Blog | Chat with us on Slack!


SecureNative Java agent provides application security monitoring and protection from OWASP TOP 10 security threats at run-time through dynamic instrumentation of business logic and user behaviour.

SecureNative monitors and protects applications from common security threats such as:

  • Bad bots
  • 3rd party packages vulnerabilities
  • SQL/NoSQL injections
  • XSS attacks
  • Massive security scans
  • Raise of HTTP errors (40X, 50X)
  • Anomaly Usage
  • Content Scrapping
  • Adaptive Authentication, prevent ATO (Account Takeover)

Installation

Create free account at register to get api key.

Create a basic setting file inside your project's folder:

cat > securenative.properties <<EOF
SECURENATIVE_APP_NAME=YOUR_APPLICATION_NAME
SECURENATIVE_API_KEY=YOUR_API_KEY
EOF

Run SecureNative agent:

Download the latest java agent jar file (with dependencies). Run your java program with the following jvm command:

`java -javaagent:/path/to/securenative-agent-with-dependencies.jar -jar /path/to/application.jar`

Notes:

  1. Make sure you're using the correct jar file! Maven repository contains various versions of the jar file, make sure you've downloaded the one marked "with-dependencies".
  2. To run using JetBrains Intellij add the following command to run/debug configuration --> VM options
-javaagent:/path/to/securenative-agent-with-dependencies.jar -jar /path/to/application.jar

Configuration

Option Type Optional Default Value Description
SECURENATIVE_API_KEY string false none SecureNative api key
SECURENATIVE_APP_NAME string false package.json Name of application source
SECURENATIVE_API_URL string true https://api.securenative.com/v1/collector Default api base address
SECURENATIVE_INTERVAL long true 1000 Default interval for SDK to try to persist events
SECURENATIVE_HEARTBEAT_DELAY long true 0 Default agent heartbeat delay
SECURENATIVE_HEARTBEAT_PERIOD long true 6000 Default agent heartbeat period
SECURENATIVE_CONFIG_DELAY long true 0 Default agent config delay
SECURENATIVE_CONFIG_PERIOD long true 6000 Default agent config period
SECURENATIVE_MAX_EVENTS long true 1000 Max in-memory events queue
SECURENATIVE_TIMEOUT long true 1500 API call timeout in ms
SECURENATIVE_AUTO_SEND Boolean true true Should api auto send the events
SECURENATIVE_DISABLE Boolean true true Allow to disable agent functionality
SECURENATIVE_DEBUG_MODE Boolean true false Displays debug info to stdout

Compatibility

This agent is compatible with Java 8.x and higher.

For other compatibility related information, please visit the compatibility page.

Documentation

For more details, please visit documentation page, available on docs.securenative.com.

com.securenative.java

SecureNative

A Cloud-Native Security Monitoring and Protection Platform

Versions

Version
1.4.5
1.4.4
1.4.3
1.4.2
1.1
1.0