Repository navigation
Document crypto wallet address detection and the crypto_addresses selector - #121
Merged
Merged
Conversation
rules/bitcoin.lua was replaced by rules/crypto.lua, which no longer uses the regexp/re_conditions technique these pages cited as a live example.
Add a how-to guide for the new wallet address rules: supported currencies and their symbols, what is validated, how CRYPTO_ADDR_CHECK and the per-currency symbols behave, the broader LEAKED_PASSWORD_SCAM composite, the crypto_addresses selector with a multimap example, scan limits and the lua_crypto_addresses API. List the crypto_addresses extractor in the selectors reference, link the guide from the tutorials index and the sidebar, and rename the 'bitcoin' save directory in the SAVE_MAILDIR example, since the scam composite now covers every currency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the new cryptocurrency wallet address detection in Rspamd. The code change replaces
rules/bitcoin.luawith a sharedlua_crypto_addresseslibrary, per-currency symbols and acrypto_addressesselector. Link the Rspamd PR here: .Changes
docs/tutorials/crypto_addresses.md, "Detecting crypto wallet addresses":_MAYBEsymbols (Ethereum and EVM chains, Monero), which are format-only;CRYPTO_ADDR_CHECKparent symbol and the default score of 0;LEAKED_PASSWORD_SCAMcomposite;crypto_addressesselector, with a multimap example that setscombinator = "array";lua_crypto_addressesAPI, includingadd_from_string.crypto_addressesextractor row.SAVE_MAILDIRexample now saves tocrypto_scaminstead ofbitcoin, since the composite covers every currency.rules/bitcoin.luareferences inwriting_rules.md,tool-selection.mdandregexp.md, because that file no longer exists.Notes for reviewers
crypto_addressesin the selectors table is—. Please fill in the release once it is known.