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 Library for the mailboxlayer API, a web service that email validation & verification, https://mailboxlayer.com/
Simple and powerful email verification JSON API using SMTP, typo checks, syntax validation, and free and disposable provider filtering. Free for personal use.
Add this line to your application's Gemfile:
gem 'email_address_validation'
And then execute:
$ bundle
Or install it yourself as:
$ gem install email_address_validation
Before using the mailboxlayer API client you have to setup your account and obtain your API Access Key.
You can get it by signing up at https://mailboxlayer.com/product.
All endpoints in the public API is available through this library.
The general API is documented here: https://mailboxlayer.com/documentation.
You can find parameters, result set definitions and status codes documented here as well.
In the examples directory you can find demos and samples of general usage of all the API functions.
@client = MailboxLayer::Client.new( [access_key] )
Your unique key that you can find on the dashboard of your account under the mailboxlayer account.
Boolean value to indicate if the calls to the API should use a secure protocol or insecure (HTTP/HTTPS). Defaults to false (HTTP, insecure).
Takes a URL and returns the captured image.
Second we define an options object. All the options are documented here: https://mailboxlayer.com/documentation
options = MailboxLayer::CheckOptions.new()
We then place the actual call to the API, passing in the email we wish to check and the options we defined above.
response = @client.check( [email] [, options] )
If we pass the email test@test.com
as the email argument above, we get the following result:
{
"email": "test@test.com",
"did_you_mean": "test@me.com",
"user": "test",
"domain": "test.com",
"format_valid": true,
"mx_found": nil,
"smtp_check": false,
"catch_all": nil,
"role": false,
"disposable": false,
"free": false,
"score": 0.32
}
In the [rootdir]/example directory there is a fully functional application which runs all requests against all the endpoints in the API, the examples above can be seen there as source code.
The example application uses a process.env variable to hold the access key.
The tests are written using the rspec testing library.
RSpec http://rspec.info/
In order to run the tests, the following environment variables needs to be set:
ACCESS_KEY = [access_key]
Need any assistance? Get in touch with Customer Support.
Stay up to date by following @apilayernet on Twitter.
All usage of the languagelayer website, API, and services is subject to the pdflayer Terms & Conditions and all annexed legal documents and agreements.
Peter Andreas Moelgaard (GitHub, Twitter)
Licensed under the The MIT License (MIT)
Copyright (©) 2016 Peter Andreas Moelgaard & apilayer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that emailvalidation 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.