The main purpose of security.txt is to help make things easier for companies and security researchers when trying to secure platforms. Thanks to security.txt, security researchers can easily get in touch with companies about security issues.
$ npm install koa-security.txt
const securitytxt = require('koa-security.txt');
const options = {
contact: '[email protected]',
encryption: 'https://example.com/public-key.asc'
};
app.use(securitytxt(options));
Type: object
Type: string
Default: rainbows
E-mail address for people to contact you about security issues
Type: string
A link to a key which security researchers should use to securely talk to you. Remember to include "https://"
Type: string
A link to a web page where you say thank you to security researchers who have helped you. Remember to include "https://".
Type: Array
Default: ['en']
A comma-separated list of Preferred-Language codes that your security team speaks. You may include more than one language.
Type: string
The most common URL for accessing your security.txt file.
Type: string
A link to a policy detailing what security researchers should do when searching for or reporting security issues. Remember to include "https://".
Type: string
A link to any security-related job openings in your organisation. Remember to include "https://".