this post was submitted on 31 Aug 2024
19 points (74.4% liked)

Open Source

31028 readers
857 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

cross-posted from: https://discuss.tchncs.de/post/21298994

I'm trying to feel more comfortable using random GitHub projects, basically.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 months ago (5 children)

Probably not. Obfuscation works, and might even depend on remote code being downloaded at either build time or run time.

There are a lot of heuristics you can use (e.g. disallowing some functions/modules) to check a codebase, but those already exist no AI required. Unless you call static analysis "AI", who knows.

[–] [email protected] 1 points 2 months ago (4 children)

But an AI can "realise" the code might be downloading something it doesn't need to. That's the point.

AI is "smart" and understands that you told it that the library was supposed to do something specific, and it can understand that and look for things that seem not correlated to the purpose of the repo.

[–] [email protected] 4 points 2 months ago (1 children)

If you're one of those people that think every product is better if there's "AI" on the box then sure. What you're describing is static analysis though, it is not new.

[–] [email protected] 1 points 2 months ago (1 children)
[–] [email protected] 2 points 2 months ago

Gitlab has a SAST tool

load more comments (2 replies)
load more comments (2 replies)