Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
messagemedia_signingkeys_sdk
Advanced tools
The MessageMedia Signature Key API provides a number of endpoints for managing key used to sign each unique request to ensure security and the requests can't (easily) be spoofed. This is similar to using HMAC in your outbound messaging (rather than HTTP Basic).
gem install messagemedia_signingkeys_sdk
It's easy to get started. Simply enter the API Key and secret you obtained from the MessageMedia Developers Portal into the code snippet below and a mobile number you wish to send to.
require 'message_media_signing_keys'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
body_value = "{
\"digest\": \"SHA224\",
\"cipher\": \"RSA\"
}";
body = JSON.parse(body_value);
result = signatureKeyManagement_controller.create_signature_key(body)
pp result
You can get a key_id by looking at the id of the signature key created from the response of the above example.
require 'message_media_signing_keys'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
key_id = 'key_id'
result = signatureKeyManagement_controller.get_signature_key_detail(key_id)
pp result
require 'message_media_signing_keys'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
result = signatureKeyManagement_controller.get_signature_key_list()
pp result
You can get the key_id by looking at the ids of the signature keys returned from the response of the Get signature keys list
example.
require 'message_media_signing_keys'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
key_id = 'key_id'
signatureKeyManagement_controller.delete_signature_key(key_id)
You can get the key_id by looking at the ids of the signature keys returned from the response of the Get signature keys list
example.
require 'message_media_signing_keys'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
body = EnableSignatureKeyRequest.new({
"key_id": "7ca628a8-08b0-4e42-aeb8-960b37049c31"
})
result = signatureKeyManagement_controller.update_enable_signature_key(body)
pp result
require 'message_media_signing_keys'
require 'pp'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
result = signatureKeyManagement_controller.get_enabled_signature_key()
pp result
require 'message_media_signing_keys'
# Configuration parameters and credentials
basic_auth_user_name = 'basic_auth_user_name' # The username to use with basic authentication
basic_auth_password = 'basic_auth_password' # The password to use with basic authentication
client = MessageMediaSigningKeys::MessageMediaSigningKeysClient.new(
basic_auth_user_name: basic_auth_user_name,
basic_auth_password: basic_auth_password
)
signatureKeyManagement_controller = client.signature_key_management
signatureKeyManagement_controller.delete_disable_the_current_enabled_signature_key()
Check out the full API documentation for more detailed information.
Please contact developer support at developers@messagemedia.com or check out the developer portal at developers.messagemedia.com
Apache License. See the LICENSE file.
FAQs
Unknown package
We found that messagemedia_signingkeys_sdk 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.