@newrelic/security-agent 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### v2.4.3 (2025-07-23)
|
|
2
|
+
#### Bug fixes
|
|
3
|
+
* Removed dependency sync-req and updated axios
|
|
4
|
+
|
|
1
5
|
### v2.4.2 (2025-05-14)
|
|
2
6
|
#### Bug fixes
|
|
3
7
|
* Fixed usage of incorrect method
|
|
@@ -7,21 +11,21 @@
|
|
|
7
11
|
* Only listen once for uncaughtException
|
|
8
12
|
#### Miscellaneous chores
|
|
9
13
|
* (deps-dev): bump koa from v2.14.2 to v2.16.1
|
|
10
|
-
* (deps-dev): bump tar-fs from v2.1.1 to v2.1.2
|
|
14
|
+
* (deps-dev): bump tar-fs from v2.1.1 to v2.1.2
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
### v2.4.0 (2025-03-21)
|
|
14
18
|
#### Features
|
|
15
19
|
* Support for gRPC error reporting
|
|
16
|
-
* Support to detect API endpoints in next.js framework
|
|
20
|
+
* Support to detect API endpoints in next.js framework
|
|
17
21
|
#### Miscellaneous chores
|
|
18
22
|
* Updated axios to v1.8.4
|
|
19
23
|
|
|
20
24
|
### v2.3.2 (2025-03-11)
|
|
21
25
|
#### Bug fixes
|
|
22
|
-
* Updated axios to v1.8.2
|
|
26
|
+
* Updated axios to v1.8.2
|
|
23
27
|
#### Miscellaneous chores
|
|
24
|
-
* Updated readme
|
|
28
|
+
* Updated readme
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
### v2.3.1 (2025-02-04)
|
|
@@ -33,20 +37,20 @@
|
|
|
33
37
|
#### Features
|
|
34
38
|
* Added Support for VM module
|
|
35
39
|
* IAST support for Next.js
|
|
36
|
-
* Support for Insecure settings i.e crypto, hash and random modules
|
|
40
|
+
* Support for Insecure settings i.e crypto, hash and random modules
|
|
37
41
|
|
|
38
42
|
#### Bug fixes
|
|
39
43
|
* Fix for special characters in ws header
|
|
40
|
-
* Fix for getting transaction in graphql instrumentation
|
|
41
|
-
* Fix for mongodb unit tests
|
|
44
|
+
* Fix for getting transaction in graphql instrumentation
|
|
45
|
+
* Fix for mongodb unit tests
|
|
42
46
|
|
|
43
47
|
#### Miscellaneous chores
|
|
44
48
|
* deps-dev: bump undici from v5.28.4 to v5.28.5
|
|
45
|
-
* Updated axios to v1.7.9
|
|
49
|
+
* Updated axios to v1.7.9
|
|
46
50
|
|
|
47
51
|
### v2.2.0 (2024-12-18)
|
|
48
52
|
#### Features
|
|
49
|
-
* Support for express 5.x
|
|
53
|
+
* Support for express 5.x
|
|
50
54
|
* IAST support for GraphQL
|
|
51
55
|
* Added support for trustboundary security events
|
|
52
56
|
|
|
@@ -55,7 +59,7 @@
|
|
|
55
59
|
|
|
56
60
|
### v2.1.1 (2024-11-07)
|
|
57
61
|
#### Bug fixes
|
|
58
|
-
* Fix for assignment to logger constant
|
|
62
|
+
* Fix for assignment to logger constant
|
|
59
63
|
|
|
60
64
|
### v2.1.0 (2024-11-05)
|
|
61
65
|
#### Features
|
|
@@ -65,7 +69,7 @@
|
|
|
65
69
|
* Added default values for scan_schedule, scan_controllers and exclude_from_iast_scan config
|
|
66
70
|
* Fix for security home placeholder replacement in fuzz requests
|
|
67
71
|
* Handling to not resolve file path in fs module instrumentation
|
|
68
|
-
* Fix for batch size and condition of iast-data-request sending
|
|
72
|
+
* Fix for batch size and condition of iast-data-request sending
|
|
69
73
|
#### Miscellaneous chores
|
|
70
74
|
* Added requestURI field in http request for application-runtime-error
|
|
71
75
|
* Updated instrumented to get the transaction directly instead of from the active segment
|
|
@@ -94,7 +98,7 @@
|
|
|
94
98
|
#### Bug fixes
|
|
95
99
|
* Fix for traceId in error reporting
|
|
96
100
|
#### Miscellaneous chores
|
|
97
|
-
* (deps): bumped axios from 1.6.8 to 1.7.4
|
|
101
|
+
* (deps): bumped axios from 1.6.8 to 1.7.4
|
|
98
102
|
* (deps-dev): bumped ws from 7.5.9 to 8.18.0
|
|
99
103
|
#### Continuous integration
|
|
100
104
|
* Added Node.js v22.x to unit tests
|
|
@@ -102,26 +106,26 @@
|
|
|
102
106
|
### v1.4.0 (2024-06-24)
|
|
103
107
|
#### Features
|
|
104
108
|
* Added support to report application's errors while IAST scanning
|
|
105
|
-
* Support to detect gRPC API endpoints
|
|
109
|
+
* Support to detect gRPC API endpoints
|
|
106
110
|
#### Bug fixes
|
|
107
111
|
* Remove additional headers added by IAST client
|
|
108
|
-
* Fix for uncaught exception reporting
|
|
112
|
+
* Fix for uncaught exception reporting
|
|
109
113
|
#### Miscellaneous chores
|
|
110
|
-
* Updated package.json to bump ws from 8.14.2 to 8.17.1
|
|
111
|
-
* (deps-dev): bump @grpc/grpc-js from 1.9.12 to 1.10.9
|
|
114
|
+
* Updated package.json to bump ws from 8.14.2 to 8.17.1
|
|
115
|
+
* (deps-dev): bump @grpc/grpc-js from 1.9.12 to 1.10.9
|
|
112
116
|
* (deps-dev): bump braces from 3.0.2 to 3.0.3
|
|
113
|
-
* (deps): bump ws from 8.14.2 to 8.17.1
|
|
117
|
+
* (deps): bump ws from 8.14.2 to 8.17.1
|
|
114
118
|
|
|
115
119
|
### v1.3.0 (2024-05-31)
|
|
116
120
|
#### Features
|
|
117
121
|
* Added route field in security event for API endpoint mapping
|
|
118
122
|
#### Bug fixes
|
|
119
|
-
* Fix for control commands acknowledgement in security agent
|
|
120
|
-
* Added assert for typeof response data in Reflected XSS validation
|
|
121
|
-
* Updated @grpc/grpc-js instrumentation to instrument submodules
|
|
123
|
+
* Fix for control commands acknowledgement in security agent
|
|
124
|
+
* Added assert for typeof response data in Reflected XSS validation
|
|
125
|
+
* Updated @grpc/grpc-js instrumentation to instrument submodules
|
|
122
126
|
* Handling to convert header values into string
|
|
123
127
|
#### Miscellaneous chores
|
|
124
|
-
* Updated log level for critical messages
|
|
128
|
+
* Updated log level for critical messages
|
|
125
129
|
* Readme update
|
|
126
130
|
* (deps-dev): bump axios from 0.21.4 to 1.7.2
|
|
127
131
|
|
|
@@ -129,7 +133,7 @@
|
|
|
129
133
|
#### Features
|
|
130
134
|
* Added instrumentation for express framework's res.download() and res.sendFile()
|
|
131
135
|
#### Bug fixes
|
|
132
|
-
* Handling to decrypt fuzz header data for IAST scanning
|
|
136
|
+
* Handling to decrypt fuzz header data for IAST scanning
|
|
133
137
|
* Logging and snapshot file fixes
|
|
134
138
|
#### Miscellaneous chores
|
|
135
139
|
* Prepend vulnerability case type with apiId
|
|
@@ -142,13 +146,13 @@
|
|
|
142
146
|
|
|
143
147
|
### v1.1.0 (2024-03-19)
|
|
144
148
|
#### Features
|
|
145
|
-
* IAST support for grpc
|
|
149
|
+
* IAST support for grpc
|
|
146
150
|
* Functionality to report API endpoints of the application
|
|
147
151
|
* IAST support for undici
|
|
148
152
|
#### Bug fixes
|
|
149
153
|
* Updated permissions for file/directory created by security agent
|
|
150
154
|
#### Miscellaneous chores
|
|
151
|
-
* Bumped follow-redirects from v1.15.2 to v1.15.4
|
|
155
|
+
* Bumped follow-redirects from v1.15.2 to v1.15.4
|
|
152
156
|
* Updated axios to v1.6.8
|
|
153
157
|
* Bumped ip from v2.0.0 to v2.0.1
|
|
154
158
|
* Bumped undici from 5.28.2 to v5.28.3
|
|
@@ -156,7 +160,7 @@
|
|
|
156
160
|
|
|
157
161
|
### v1.0.1 (2024-02-07)
|
|
158
162
|
#### Bug fixes
|
|
159
|
-
* Reporting of framework in security event json
|
|
163
|
+
* Reporting of framework in security event json
|
|
160
164
|
#### Miscellaneous chores
|
|
161
165
|
* Updated software license to New Relic Software License Version 1.0
|
|
162
166
|
* Ability to send critical messages on successful startup of agent
|
|
@@ -173,8 +177,8 @@
|
|
|
173
177
|
#### Miscellaneous chores
|
|
174
178
|
* Updated log event jsonName to "critical-messages"
|
|
175
179
|
* Removed dependency @aws-sdk/client-lambda
|
|
176
|
-
* Bumped follow-redirects from v1.15.2 to v1.15.4
|
|
177
|
-
* Upgraded axios to v1.6.5
|
|
180
|
+
* Bumped follow-redirects from v1.15.2 to v1.15.4
|
|
181
|
+
* Upgraded axios to v1.6.5
|
|
178
182
|
|
|
179
183
|
### v0.6.0 (2024-01-03)
|
|
180
184
|
#### Features
|
|
@@ -186,7 +190,7 @@
|
|
|
186
190
|
* Fix for honouring probing interval from policy
|
|
187
191
|
#### Miscellaneous chores
|
|
188
192
|
* Added nestjs test cases
|
|
189
|
-
* Additional logging for instrumented modules and methods
|
|
193
|
+
* Additional logging for instrumented modules and methods
|
|
190
194
|
* Upgraded axios to v1.6.3
|
|
191
195
|
* Removed pinned version for axios and check-disk-space
|
|
192
196
|
* Update in lockfileVersion of package-lock.json
|
|
@@ -207,10 +211,10 @@
|
|
|
207
211
|
|
|
208
212
|
### v0.4.0 (2023-10-27)
|
|
209
213
|
#### Features
|
|
210
|
-
* Added event stats for RASP, IAST and exit events in healthcheck.
|
|
214
|
+
* Added event stats for RASP, IAST and exit events in healthcheck.
|
|
211
215
|
#### Miscellaneous chores
|
|
212
216
|
* Deps: Updated uuid to v9.0.1 and @aws-sdk/client-lambda to v3.405.0
|
|
213
|
-
* Upgraded axios to 1.6.0 to resolve CVE-2023-45857
|
|
217
|
+
* Upgraded axios to 1.6.0 to resolve CVE-2023-45857
|
|
214
218
|
#### Continuous integration
|
|
215
219
|
* Removed Node.js 14.x from CI.
|
|
216
220
|
* Added should_skip flag to skip CI based on label.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -32,7 +32,6 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
|
|
|
32
32
|
* [request-ip](#request-ip)
|
|
33
33
|
* [ringbufferjs](#ringbufferjs)
|
|
34
34
|
* [semver](#semver)
|
|
35
|
-
* [sync-request](#sync-request)
|
|
36
35
|
* [unescape-js](#unescape-js)
|
|
37
36
|
* [unescape](#unescape)
|
|
38
37
|
* [uuid](#uuid)
|
|
@@ -78,7 +77,7 @@ code, the source code can be found at [https://github.com/newrelic/csec-node-age
|
|
|
78
77
|
|
|
79
78
|
### axios
|
|
80
79
|
|
|
81
|
-
This product includes source derived from [axios](https://github.com/axios/axios) ([v1.
|
|
80
|
+
This product includes source derived from [axios](https://github.com/axios/axios) ([v1.11.0](https://github.com/axios/axios/tree/v1.11.0)), distributed under the [MIT License](https://github.com/axios/axios/blob/v1.11.0/LICENSE):
|
|
82
81
|
|
|
83
82
|
```
|
|
84
83
|
# Copyright (c) 2014-present Matt Zabriskie & Collaborators
|
|
@@ -532,32 +531,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
532
531
|
|
|
533
532
|
```
|
|
534
533
|
|
|
535
|
-
### sync-request
|
|
536
|
-
|
|
537
|
-
This product includes source derived from [sync-request](https://github.com/ForbesLindesay/sync-request) ([v6.1.0](https://github.com/ForbesLindesay/sync-request/tree/v6.1.0)), distributed under the [MIT License](https://github.com/ForbesLindesay/sync-request/blob/v6.1.0/LICENSE):
|
|
538
|
-
|
|
539
|
-
```
|
|
540
|
-
Copyright (c) 2014 Forbes Lindesay
|
|
541
|
-
|
|
542
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
543
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
544
|
-
in the Software without restriction, including without limitation the rights
|
|
545
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
546
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
547
|
-
furnished to do so, subject to the following conditions:
|
|
548
|
-
|
|
549
|
-
The above copyright notice and this permission notice shall be included in
|
|
550
|
-
all copies or substantial portions of the Software.
|
|
551
|
-
|
|
552
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
553
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
554
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
555
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
556
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
557
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
558
|
-
THE SOFTWARE.
|
|
559
|
-
```
|
|
560
|
-
|
|
561
534
|
### unescape-js
|
|
562
535
|
|
|
563
536
|
This product includes source derived from [unescape-js](https://github.com/iamakulov/unescape-js) ([v1.1.4](https://github.com/iamakulov/unescape-js/tree/v1.1.4)), distributed under the [MIT License](https://github.com/iamakulov/unescape-js/blob/v1.1.4/LICENSE):
|
|
@@ -138,7 +138,7 @@ function ApplicationInfo () {
|
|
|
138
138
|
? `${process.env[AWS_LAMBDA_FUNCTION_NAME_ENV_IDENTIFIER]}:${lambdaVersion}`
|
|
139
139
|
: `${lambdaARN}:${lambdaVersion}`;
|
|
140
140
|
this.identifier.lambdaAWSSessionToken = process.env[AWS_SESSION_TOKEN_ENV_IDENTIFIER];
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
} else {
|
|
143
143
|
this.identifier.kind = "HOST";
|
|
144
144
|
this.identifier.envInfo = setHostProperties();
|
|
@@ -482,42 +482,9 @@ function getECSTaskId () {
|
|
|
482
482
|
|
|
483
483
|
function populateECSInfo (ecsObj) {
|
|
484
484
|
ecsObj.ecsTaskId = getECSTaskId();
|
|
485
|
-
const ecsData = getECSInfo();
|
|
486
|
-
if (!_.isEmpty(ecsData)) {
|
|
487
|
-
const imageId = ecsData.ImageID;
|
|
488
|
-
const imageName = ecsData.Image;
|
|
489
|
-
|
|
490
|
-
ecsObj.imageId = imageId;
|
|
491
|
-
ecsObj.imageName = imageName;
|
|
492
|
-
|
|
493
|
-
const labels = ecsData.Labels;
|
|
494
|
-
|
|
495
|
-
if (!_.isEmpty(labels)) {
|
|
496
|
-
const containerName = labels['com.amazonaws.ecs.container-name'];
|
|
497
|
-
const ecsTaskDefinitionFamily = labels['com.amazonaws.ecs.task-definition-family'];
|
|
498
|
-
const ecsTaskDefinitionVersion = labels['com.amazonaws.ecs.task-definition-version'];
|
|
499
|
-
|
|
500
|
-
ecsObj.containerName = containerName;
|
|
501
|
-
if (ecsTaskDefinitionFamily && ecsTaskDefinitionVersion) {
|
|
502
|
-
ecsObj.ecsTaskDefinition = ecsTaskDefinitionFamily + ':' + ecsTaskDefinitionVersion;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
485
|
return ecsObj;
|
|
507
486
|
}
|
|
508
487
|
|
|
509
|
-
function getECSInfo () {
|
|
510
|
-
const url = process.env.ECS_CONTAINER_METADATA_URI;
|
|
511
|
-
let json = {};
|
|
512
|
-
const request = require('sync-request');
|
|
513
|
-
try {
|
|
514
|
-
const res = request('GET', url);
|
|
515
|
-
const body = res.getBody();
|
|
516
|
-
json = JSON.parse(body);
|
|
517
|
-
} catch (error) {
|
|
518
|
-
}
|
|
519
|
-
return json;
|
|
520
|
-
}
|
|
521
488
|
|
|
522
489
|
function getApplicationSHAAndSizeFromWorker (applicationInfo, applicationPath) {
|
|
523
490
|
const { Worker } = require('worker_threads');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/security-agent",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "New Relic Security Agent for Node.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"jsonVersion": "1.2.9",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/newrelic/csec-node-agent.git"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"axios": "^1.
|
|
42
|
+
"axios": "^1.11.0",
|
|
43
43
|
"check-disk-space": "^3.4.0",
|
|
44
44
|
"content-type": "^1.0.5",
|
|
45
45
|
"cron": "^3.1.7",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"request-ip": "^3.3.0",
|
|
58
58
|
"ringbufferjs": "^2.0.0",
|
|
59
59
|
"semver": "^7.5.4",
|
|
60
|
-
"sync-request": "^6.1.0",
|
|
61
60
|
"unescape": "^1.0.1",
|
|
62
61
|
"unescape-js": "^1.1.4",
|
|
63
62
|
"uuid": "^9.0.1",
|