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.
blue-brain-token-fetch
Advanced tools
Package to perform fetching and automatic refreshing of the Nexus access token using Keycloak. Using the CLI you can choose to either have its value periodically written in the file whose path is given in input or either have it periodically printed on the console output.
This CLI allows the fetching and the automatic refreshing of the Nexus token using Keycloak. Its value can be written periodically in a file whose path is given in input or be displayed on the console output as desired. The CLI is based on the class TokenFetcherUser that is in charge of the token fetching and refreshing. If being imported as a library, two public methods of a TokenFetcherUser object makes possible to get a fresh Nexus access token and to get its life duration.
For more information about Nexus, see https://bluebrainnexus.io/
Clone the repository:
git clone https://github.com/BlueBrain/bbp-token-fetch.git
and install with pip
:
pip install blue_brain_nexus_token_fetch
From now on, the executable blue-brain-token-fetch is in your PATH
.
blue-brain-token-fetch
blue-brain-token-fetch -o path ./token.txt \
-rp 10s \
-to 1h \
Note: If you want to regain control on the keyboard you can launch the CLI then kill its process then relaunch it in background mode by doing:
blue-brain-token-fetch
# ctrl+z
bg
If imported in a script:
username
and password
my_token_fetcher = TokenFetcherUser(username, password, keycloak_config_file)
client_id
and client_password
my_token_fetcher = TokenFetcherService(client_id, client_password, keycloak_config_file)
Then you can get an access token and its duration (how long until it expires) with:
my_access_token = my_token_fetcher.get_access_token()
acess_token_duration = my_token_tetcher.get_access_token_duration()
The development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.
Copyright © 2021-2024 Blue Brain Project/EPFL
FAQs
Package to perform fetching and automatic refreshing of the Nexus access token using Keycloak. Using the CLI you can choose to either have its value periodically written in the file whose path is given in input or either have it periodically printed on the console output.
We found that blue-brain-token-fetch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.