How can I know that Javascript code are safe to use?

QWE333

Elite Member
Joined
Aug 16, 2013
Messages
1,828
Reaction score
1,575
Hello guys,

I have a custom tool that I'm using it for a long time, It's a Javascript code of Chrome extension.
Nothing special happened I was just thinking to myself how can I know for the next time if the code is safe to use?

Google / ChatGPT don't give me the answer..
I also did an EAST antivirus scan about all the files in this folder and he said that all good but I just wondered with myself, there is no any tool who do it?

Thanks is advance developers!
 
Hello guys,

I have a custom tool that I'm using it for a long time, It's a Javascript code of Chrome extension.
Nothing special happened I was just thinking to myself how can I know for the next time if the code is safe to use?

Google / ChatGPT don't give me the answer..
I also did an EAST antivirus scan about all the files in this folder and he said that all good but I just wondered with myself, there is no any tool who do it?

Thanks is advance developers!
Did you build the custom cool yourself? If not you'd have to audit the source code to see if there are any vulnerabilities.
 
Send your code to a dev for review
 
I think the only way is to know how to read the code
 
what kind of code inspection does chatgpt provides? can it find only input based vulns? or logical too? or leaks?
 
Since js doesn`t have access to os and file system when running in browser, in most situations it`s safe to run js code, but if you have some local data, saved in browser, it can harm your sensetive data...So use some browser, which is not saving fingerprints and passwords, tor, for example
 
what kind of code inspection does chatgpt provides? can it find only input based vulns? or logical too? or leaks?
chatgpt as a stochastic monkey only gives you an idea if your code contains known and documented vulnerabilities. otherwise it's a bullet in the leg to rely on LLM in this area. I played mostly with smart contracts and 9 out of 10 times chatgpt4 missed pretty obvious logical holes.
 
you can use the code, if something bad happens, then it means it's not safe
 
chatgpt as a stochastic monkey only gives you an idea if your code contains known and documented vulnerabilities. otherwise it's a bullet in the leg to rely on LLM in this area. I played mostly with smart contracts and 9 out of 10 times chatgpt4 missed pretty obvious logical holes.
just as i though
 
Back
Top