Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Ruby command line script to reconcile computers and groups on Cisco's AMP for Endpoints web portal with local LDAP servers.
gem install amp4e_ldap_tool
amp4e_ldap_tool amp
It makes an HTTP request to the AMP for Endpoints web portal. We must provide flags to tell amp what we want to receive:
-c
gets a list of Computers in the AMP system.-g
gets a list of Groups as AMP sees them-p
gets a list of policies-t
provides any of the above options with formatted output.amp4e_ldap_tool
It retrieves information from the LDAP server, using credentials provided in your config file. It also requires flags to tell it what to get from the server:
-c
gets computer names-g
gets computer group names-d
gets the fully distinguished name (LDAP)-t
provides any of the above options with formatted output.The command make_changes
is the workhorse. Calling it on its own:
amp4e_ldap_tool make_changes
Displays the dry run, a list of changes that will be changed shown in aggregate. These changes will be formatted in easy-to-read tables as shown below:
+---------------------------------+--------------+
| Group Creates |
+---------------------------------+--------------+
| Group Name | Parent Group |
+---------------------------------+--------------+
| Computers.2k8sso.local | nil |
| local | nil |
| 2k8sso.local | nil |
| Domain Controllers.2k8sso.local | nil |
+---------------------------------+--------------+
+---------------------------------+------------+--------------+
| Group Moves |
+---------------------------------+------------+--------------+
| Group | Old Parent | New Parent |
+---------------------------------+------------+--------------+
| Computers.2k8sso.local | | 2k8sso.local |
| 2k8sso.local | | local |
| Domain Controllers.2k8sso.local | | 2k8sso.local |
+---------------------------------+------------+--------------+
+----------------+------------+------------------------+
| Computer Moves |
+----------------+------------+------------------------+
| # of computers | from group | to group |
+----------------+------------+------------------------+
| 2 | Protect | Computers.2k8sso.local |
| 2 | Audit | Computers.2k8sso.local |
+----------------+------------+------------------------+
Applying the -a option will tell the command to apply the changes, it will prompt the user to continue with a y/n after showing the dry run.
The config file holds our user/password information for the API/LDAP servers. It follows a specific format and a template is provided below:
#config.yml
:ldap:
:host: # LDAP hostname
:domain: # domain of LDAP tree
:credentials:
:un: # server username
:pw: # server password
:schema:
:filter: "computer" # default as computer
:amp:
:host: # api url for AMP
:api:
:third_party: # third party code
:key: # api key
:version: "v1" # default version is v1
FAQs
Unknown package
We found that amp4e_ldap_tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.