PretendoNetwork / Bandwidth

Official Pretendo Network Discord community bot
GNU Affero General Public License v3.0
3 stars 12 forks source link

Better automatic help #8

Closed jonbarrow closed 9 months ago

jonbarrow commented 12 months ago

Draft because @gitlimes wants me to change this due to some security concerns

PR makes changes to the AIMessageProcessor class to increase the thresholds, as well as adds the ability for Bandwidth to scrub and convert common proxy server dumps

The changes made to the AIMessageProcessor are done because Bandwidth's AI is still not perfect, and would result in false positives. Setting the thresholds to perfect scores essentially disables the feature for now until we have time to sit down and improve it. These changes were already in Bandwidth by changing the values on the server with nano, this just brings them into the repo now

Bandwidth now scans messages for attachments containing common proxy server dumps. It does this via the attachments extension. Bandwidth will then download said file and use the charles CLI tool to convert them into JSON summaries, scrub them of personal information and then upload them again converted to HAR

The following data is removed

Headers

account.nintendo.net / account.pretendo.cc

/v1/api/oauth20/access_token/generate

/v1/api/people/@me/profile

/v1/api/provider/service_token/@me

/v1/api/provider/nex_token/@me

nasc.nintendowifi.net / nasc.pretendo.cc

/ac

jonbarrow commented 9 months ago

Superseeded by #9