TL;DR Why did I (Victoriano Giralt) decide to point Calude Code Opus 5
at WASD code and how we (Mark, myself and "the tool") did it.
You will see why we (Mark and myself) refer to the AI as
"the tool" in part 2 of this instalments ... ;-) :-)
This will read more like story telling than a technical text.
The story has three main characters: Mark G. Daniel, myself Victoriano
Giralt and "Claude the tool". But, let's start the story from the
beginning.
I have a long time good friend who's a seasoned sysadmin and proficient
"pythonist" that have been insisting that I should try Claude because
his experience with it for both coding and even producing strategy
documents (he has been tasked for several years with a sort of executive
position in his organisation). I, finally, fell by his chants and
decided to give it a try using his account, so, one late spring morning
I went to his office with some tasks I had been asked to produce for an
open source project I had contributed code to, and, lo and behold, the
"tool" did a really good job, I was also impressed, so much so that by
July I had my own Claude Pro account.
I'm a long time Unix and OpenVMS (with a lapse) user, so, not very fond
of windowing tools, except for managing a bunch of terminals :-). So, I
installed the CLI Claude Code client on my Fedora Linux laptop and
started to play with the tool. First, I gave it a couple of simple
tasks, like improving the UI and UX of a very basic Django application I
had just coded and applying the results to the automatic generator that
had created most of that application. I was positively impressed. I also
used the tool to produce a CV by conversing with it and giving it some
pointers to public documents on the web with similar impressive results.
The tool is very conversational, sometimes a bit too much
conversational, and, surprisingly, although I had started giving my
prompts in English (I usually think in that language when doing
technical tasks), it detected I was Spanish and decided to change
language, conversing with me in my mother tongue, which has produced
some interesting side conversations as I detected some false friends it
had used, due to my translator work background.
Finally, I was fighting an insidious bug with a SAML2 IdP latest version
I had to deploy in one of the non-profits I help, because of a system
upgrade. After fighting the bug for a couple of days with no progress, I
decided to point the tool at a local copy of the deployed system. The
tool found the problem in two hours, suggested and applied the fix and
produced a security report with a couple serious bugs that I reported to
the owner of the company that produces the software (another friend of
mine).
Adding to all this, Viktor Dukhovni, of Postfix fame, had used Claude to
review the Postfix codebase with excellent results, so good that Wietse
Venema, the main author and a reputed security expert, was also
impressed.
So, on August 5th, after sending the SAML IdP bugs to my other friend, I
wrote to Mark an email entitled "My recent musings with Claude" that
summarised the above story. This is part of our conversation in Mark's
answer to my message:
V> If you want, we can run a bug hunt over WASD code using my account
V> ππ like Viktor's contribution to Postfix. And, maybe, I can
V> find a way to do a check with the unreleased model.
M> That idea both frightens and intrigues me.
V> Just some crazy ideas about possible good uses of my new toy ππ
M> Not so crazy. Good to hear you are still engaged. So Claude won't
M> hack into VSM's WASD to find runtime issues? π I was just reading
M> a report that Meta's Muse AI also has hacked an online system after
M> it was mistakenly given misconfigured Internet access. :-|
And the ending phrase from Mark:
M> Gives me nightmares. But why not? Will be interesting to see if it
M> groks event driven code. I'll drop you a link to the latest WASD
M> server code (probably over the weekend).
I downloaded the code and, after some fight with the OpenVMS ZIP format
on my Linux laptop, I launched a session on my Claude Code CLI, telling
the tool that we will not be able to compile the code on my machine.
How does all this unfold? One of the positive behaviours of the tool is
to have the project under version control. I have used subversion way
before Git existed, so, WASD code ended under subversion version control
on my systems.
Other (not always positive) tool behaviour is the profuse documentation
it creates for everything: memories, reports, READMEs, jsonl files with
prompts and responses, ... You name it. This prompt history has produced
interesting anecdotes, see bellow.
I had given the tool very precise instructions about the bounds and
limits on my system, like, not going anywhere in the filesystem outside
the work directory for a given project or running any code without
asking for explicit permission, to which the tool abides in all sessions
I've had with it.
The first task the tool suggested was to install a couple of security
tools on my system, like semgrep, and run them on the code. It also
produced some Python code (probably because I'm also a long time
Pythonist or because it seems to be the go to language in AI) that could
be reused on new versions of the kit. After running that, it had
produced a report with hunches on what might be problems that could not
be verified without compiling.
As my OpenVMS Community license was taking some time to arrive, Mark
provided access to his workbench system and I produced a compilation
report with the options and flags the tool had asked for and fed it with
the results. This prompted the tool to ask for some (apparently)
dangerous tests on running code. So, I asked Mark for permission,
knowing that both WASD and OpenVMS would be resilient enough not to
crash with the suggested tests. Mark replied with instructions on how to
run my own image without interfering with the local WASD instance (see
part two for the howto) and so I did and started manually firing the
tests as instructed by the tool, as it had decided that the process was
more secure if it suggested the commands and I executed them, even if
they were launched from my laptop with Internet access.
The conversation with the tool progresses in what it calls "turns" and,
after some turns, I got a warning telling me the model version had been
lowered from 5 to 4.8 due to internal security safeguards outside the
tool for cybersecurity concerns, as it seemed I was conducting hostile
activities against running systems. This happened again and lowered the
model to 4.7 before I was accepted in the Cybersecurity Verification
Program, after filling a web based form explaining my activity (that I
had already explained to the tool itself when I started working on the
code as I did in the SAML2 IdP case) and a summary of my own security
background. Once I was granted CVP level, the testing progressed
uneventfully using the most powerful model at the time, Opus 5.
This was so until Mark and I decided to take a respite and I paused
interacting with the tool about WASD for a couple of weeks and resumed
with a - seemingly - innocuous "volvemos al trabajo con WASD" (back to
work on WASD) that this time simply refused to continue, no mater the
model.
Fortunately, I had another session with the tool that I named "learning
Claude with Claude" where we (the tool and myself) had been doing very
interesting investigations on how it worked and, specially, how the
blocks looked from the tool side (it can read and analyse its own code
if given permission to access the directory outside the working one). I
can share the profuse documentation on request.
In summary, this exercise has resulted in, above all, finding that WASD
code is very well written (as we WASD users already knew) and is quite
clean of serious flaws, a lot of insight about how to use an AI tool for
serious code analysis, how the tool works (not the model but the human -
machine interface) and, most important, working again with a friend like
we did a quarter of a century ago when I was running WASD for the main
University of MΓ‘laga web site. And, of course, having a lot of fun :-)
BTW, I also refreshed my OpenVMS administration skills (lapsed for about
15 years) setting up my own Community licensed system inside a Proxmox
virtualising infrastructure.
The rest, is aptly described by Mark on the second instalment.
(The pointer to the WASD web site version will be added by Mark)
--
Victoriano Giralt Retired sysadmin
==================================================================
Note: signature.asc is the electronic signature of present message
A: Yes.
> Q: Are you sure ?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email ?
|