Winter 2024
tinyurl.com/cyberxai-w24
Spring Symposium
https://l.acmcyber.com/symposium-s24
Symposium Overview
Professor Nader Sehatbakhsh
(Secure Systems & Architecture)
Thank You Experts!
Professor Yuan Tian
(IoT Security & Privacy)
Project mentors
Guest speakers
Alumni & advisors��Faculty attending!
Professor Lixia Zhang
(Computer Networking)
Thank You Experts!
Sara Beery
(@ MiT CSAIL)
Sara Hooker�(@ Cohere, Multilingual LLMs)
Guest speakers & YBIAI Podcast guests >>>>>
Who are we?
What did we do this quarter? - Rough Agenda
First Half
Second Half
💾 Secure SQLite Lab
Intro - What is SQL?
Uses: Data querying, manipulation, analysis, integrity, and MORE!!!!!
SQL Injection
FFI- Foreign Function Interface
Node.js
SQLite library (C)
Binding
Tagged Templates
Sentiment Analysis
X (Twitter)
POSITIVE
NEGATIVE
Challenges
“looking forward to the 1,138th episode of Conan tonight”
POSITIVE?
Challenges
Applications
Group 1’s Very Cool Sentiment Analysis Project
Bert
B -Bidirectional
E -Encoder
R -Representations
T -Transformers
Optimizations
Group 2’s Also The Same Sentiment Analysis Project
Optimizations
Quantization
“Not menacing” lobsters
☁️ Reverse Proxy Lab
What is a Reverse Proxy?
“A reverse proxy is a server that sits in front of web servers and forwards client (e.g. web browser) requests to those web servers. Reverse proxies are typically implemented to help increase security, performance, and reliability.”
What is a Reverse Proxy?
Fun processes between
Parsing HTTP/1.1 Requests :D
Sending the request to a backend! :D
our reverse proxy is even able to proxy a video!
Some features
🤖 Patch Attack
GO
Presentation Objectives
1 What is a patch attack?
2 How is a FGSM attack conducted?
3 How did we generate a patch?
4 Our resulting patches
What is a Patch Attack?
How is FGSM conducted?
Fast Gradient Sign Method
An AI model bases its predictions from descending to the local min by following the Gradient of a loss landscape
Lower loss =
With a FGSM, we move in the opposite direction, resulting in an inaccurate prediction
Higher loss =
Good
Bad
How did we generate a patch?
Resulting Patch
Initial attempts: patch trained so that sign will be read as a ‘Road Work’ sign
Final: patch trained so that sign will be read as a ‘120 km/h’ sign
ACM AI Competitions
Essay Scoring with LLMs
AES Introduction
Competitions fall on a scale of niche–broad.
This quarter is a broad competition.
The objective is simple: Given an essay’s
text, give it a holistic score from 1-6.
Challenge: Training data is sparse.
(It’s not possible to train an LLM from
scratch).
Solutions focus on transfer learning & embeddings.
The rubric at a glance: 📝 (1-6)
SCORE OF 6: An essay in this category demonstrates clear and consistent mastery, although it may have a few minor errors. A typical essay effectively and insightfully develops a point of view on the issue and demonstrates outstanding critical thinking; the essay uses clearly appropriate examples, reasons, and other evidence taken from the source text(s) to support its position; the essay is well organized and clearly focused, demonstrating clear coherence and smooth progression of ideas; the essay exhibits skillful use of language, using a varied, accurate, and apt vocabulary and demonstrates meaningful variety in sentence structure; the essay is free of most errors in grammar, usage, and mechanics.
SCORE OF 3: An essay in this category demonstrates developing mastery, and is marked by ONE OR MORE of the following weaknesses: develops a point of view on the issue, demonstrating some critical thinking, but may do so inconsistently or use inadequate examples, reasons, or other evidence to support its position; the essay is limited in its organization or focus, or may demonstrate some lapses in coherence or progression of ideas displays; the essay may demonstrate facility in the use of language, but sometimes uses weak vocabulary or inappropriate word choice and/or lacks variety or demonstrates problems in sentence structure; the essay may contain an accumulation of errors in grammar, usage, and mechanics.
SCORE OF 1: An essay in this category demonstrates very little or no mastery, and is severely flawed by ONE OR MORE of the following weaknesses: develops no viable point of view on the issue, or provides little or no evidence to support its position; the essay is disorganized or unfocused, resulting in a disjointed or incoherent essay; the essay displays fundamental errors in vocabulary and/or demonstrates severe flaws in sentence structure; the essay contains pervasive errors in grammar, usage, or mechanics that persistently interfere with meaning.
The data
“Many people have car where they live. The thing they don\'t know is that when you use a car alot of thing can happen\xa0like you can get in accidet or\xa0the smoke that the car has is bad to breath\xa0on if someone is walk but in VAUBAN,Germany they dont have that proble because 70 percent of vauban\'s families do not own cars,and 57 percent sold a car to move there. Street parkig ,driveways and home garages are forbidden\xa0on the outskirts of freiburd that near the French and Swiss borders. You probaly won\'t see a car in Vauban\'s streets because they are completely "car free" but\xa0If some that lives in VAUBAN that owns a car ownership is allowed,but there are only two places that you can park a large garages at the edge of the development,where a car…”
(this is a 3)
Score distributions 🤔
A human approach? 🧍♂️
HuggingFace 🤗 to the rescue? ELLIPSE
Linear Regression What could possibly go wrong (everything)
The score breakdowns
The score breakdowns
:(
Feature | Correlation with Score
---------------------------------------------------
cohesion | 0.5885
syntax | 0.5423
vocabulary | 0.5906
phraseology | 0.5577
grammar | 0.4498
conventions | 0.5028
The score breakdowns
DebertaV3
DebertaV3 Score breakdowns (training set)
But what about DebertaV3 on validation set?
Feature dataset, putting it all together
MLP
Improvement Areas
🪙 Blockchain (ICPC Collab)
What is a Blockchain
Blockchain: A decentralized, distributed and public digital ledger that is used to record transactions across many computers so that the record cannot be altered retroactively without the alteration of all subsequent blocks and the consensus of the network.
Blockchain Fundamentals Overview
Features we implemented:
Blocks
Each block contains a list of signed transactions, the hash of the previous block, and a proof of work.
Since the previous hash is part of the block, it cannot be changed without changing the current block’s hash. In this way, each block is linked to the previous and next block.
Proof of Work
Digital signatures
Public Keys:
Private Keys:
Digital signatures use asymmetric cryptography like RSA
Future Directions
AI Reading Group
looking back …
Week 4: Singular Learning Theory
Intuitively understanding the loss landscape
Week 9: Actual Reading Group Reading Group
Flash attention paper reading and KANs speedrun
Week 6: Actual Reading Group Reading Group
Direct preference optimization (DPO) paper reading
Flash Recap: SLT
Flash Recap: SLT
Flash Recap: SLT
Effective Occam’s Razor
Algorithms are favored based on their complexity (as specified by λ). Lower λ areas of weight space are “less complex” and have higher volume.
Flash Recap: SLT
We can estimate λ for models at 100M+ params!
Actual reading groups!?!??!
Tentative reading group for Fall 2024
anything else (suggest your own paper for reading group!)
🏆 Psi Beta Rho 2024
PBR Highlights
b01lersCTF/shamir-for-dummies
Shamir Secret Sharing
Secret value: s = 5
f(x) = 5 + 3x - 5x² + x³
f(1) = 4, f(2) = -1, f(3) = -4, f(4) = 1
With four points, interpolate to find (0, 5)
Without four points, can’t interpolate uniquely
In practice, take polynomial mod p
Shamir for Dummies
Polynomial is secret from us
Can evaluate at n + 1 points, but they get summed together
Can also divide by something at end
Need that end value to be the secret
No Interpolation, Just Addition
Evaluate at 𝞧, 𝞫, 𝞺
f(𝞧) ≡ s + a₁ 𝞧 + a₂ 𝞧² + … + aₙ 𝞧ⁿ mod p
f(𝞫) ≡ s + a₁ 𝞫 + a₂ 𝞫² + … + aₙ 𝞫ⁿ mod p
f(𝞺) ≡ s + a₁ 𝞺 + a₂ 𝞺² + … + aₙ 𝞺ⁿ mod p
f(𝞧) + f(𝞫) + f(𝞺) ≡ 3s + a₁(𝞧 + 𝞫 + 𝞺) + a₂ (𝞧² + 𝞫² + 𝞺²) + … + aₙ (𝞧ⁿ + 𝞫ⁿ + 𝞺ⁿ) mod p
If we could get 𝞧 + 𝞫 + 𝞺 ≡ 0, 𝞧² + 𝞫² + 𝞺² ≡ 0, …, 𝞧ⁿ + 𝞫ⁿ + 𝞺ⁿ ≡ 0 mod p
then we just divide by 3 and win!
Roots of Unity (in Complex Numbers)
W0 = 1, W1 = e^(2/3 i𝛑), W2 = e^(4/3 i𝛑)
(W0)³ = 1, (W1)³ = 1, (W2)³ = 1
W0 + W1 + W2 = 0
(W0)² + (W1)² + (W2)² = 0
Roots of Unity (modulo p)
Let p = 7, W0 = 1, W1 = 2, W3 = 4
(W0)³ ≡ 1 mod 7, (W1)³ ≡ 8 ≡ 1 mod 7, (W2)³ ≡ 64 ≡ 1 mod 7
W0 + W1 + W2 ≡ 1 + 2 + 4 ≡ 7 ≡ 0 mod 7
(W0)² + (W1)² + (W2)² ≡ 1 + 4 + 16 ≡ 21 ≡ 0 mod 7
Solving Shamir
How to find nth root of unity?
We are given n is prime, p is prime, and p = 1 mod n
Use Fermat’s Little Theorem:
Let
Since p is prime, lots of solutions for g,
so iterate values of a until you get non-trivial g
b01lersCTF/imagehost
b01lersctf/imagehost
b01lersctf/imagehost - authentication
Algorithm, which key to use
Information about logged in user
Cryptography
b01lersctf/imagehost - oopsie #1
b01lersctf/imagehost - uploading images
b01lersctf/imagehost - oopsie #2
arc.gif in the streets, public_key.pem in the sheets
b01lersctf/imagehost - oopsie #3
b01lersctf/imagehost - putting it all together
The admin’s secret images
ångstromCTF/Wonderful Wicked Wrathful Wiretapping Wholesale World Wide Watermark as a Service
👌 100/10 web development
🤔 Reconnaissance
😳 XS-Leak: Visited Links
🔗 Privacy Issues with Visited Links
🏃♂️ Optimizing the Exploit
Server
Old AI Servers
Blowing Things Up
ACM AI + AIS Server???
New AI Server
What can we do?
Current plan is to collab w/AI Safety to merge Bentham and the upcoming server.
Effective VRAM by Fall: 216GB
Effective VRAM by end of next year: 312GB
End-of-next-year fp32 FLOPS: 4.62 * 1015
Hours to train GPT-2 (~1021 flops) from scratch: 60.2
Expensive :((((
Shout out USAC!!!!!!
BOD AND CONTINGENCY FUNDS ARE FR THE GOAT!!!! 💛💙💛💙
Thanks for coming! ❤️
and now…
πING TIME
drumroll please…
The Pie Counts 🎉🥧⌚