@reinforcedai/hardhat-security-review
v2512.8.1
Published
This plugin integrates Reinforced-powered smart contract auditing into the Hardhat workflow. It enables automatic and manual security audits of Solidity contracts before deployment, leveraging decentralized intelligence for vulnerability detection and sug
Readme
Reinforced Hardhat Plugin
This plugin integrates Reinforced-powered smart contract auditing into the Hardhat workflow. It enables automatic and manual security audits of Solidity contracts before deployment, leveraging decentralized intelligence for vulnerability detection and suggestions. The plugin provides tasks for auditing all contracts and formatting results for easy review.
Features
- Automatic audit after compilation
- Manual audit task (
npx hardhat audit) - Integration with Reinforced API for contract analysis
- Tabular vulnerability reports
Usage
- Install the plugin and configure your Reinforced API key in
hardhat.config.js. - Run
npx hardhat auditto manually audit contracts. - Audits are also performed automatically before deployment.
Configuration
Add the following to your hardhat.config.js to enable the plugin:
module.exports = {
// ...existing config...
reinforced: {
compilationHookEnabled: true, // Set to true to enable auditing
apiKey: "YOUR_REINFORCED_API_KEY" // Your Reinforced API key
}
};compilationHookEnabled(boolean): Enables or disables automatic Reinforced auditing before deployment. Manual audit task always work regardless of this flag.apiKey(string): Your API key for accessing Reinforced's audit service.
